Skip to content

Commit

Permalink
Disabling the code where cursor assist line was not shown if it overl…
Browse files Browse the repository at this point in the history
…apped with an inline toolbar (e.g. table tools)
  • Loading branch information
sertand authored and dozeroshi committed Oct 5, 2018
1 parent 01e04af commit 8450d51
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions Plugins/ViperCursorAssistPlugin/ViperCursorAssistPlugin.js
Original file line number Diff line number Diff line change
Expand Up @@ -297,13 +297,13 @@

isInToolbarBounds: function(yPoint)
{
var gap = 30;
var visibleToolbars = this.viper.Tools.getVisibleToolbarRectangles();
for (var i = 0; i < visibleToolbars.length; i++) {
if (yPoint >= (visibleToolbars[i].y1 - gap) && yPoint <= (visibleToolbars[i].y2 + gap)) {
return true;
}
}
// var gap = 30;
// var visibleToolbars = this.viper.Tools.getVisibleToolbarRectangles();
// for (var i = 0; i < visibleToolbars.length; i++) {
// if (yPoint >= (visibleToolbars[i].y1 - gap) && yPoint <= (visibleToolbars[i].y2 + gap)) {
// return true;
// }
// }

return false;

Expand Down

0 comments on commit 8450d51

Please sign in to comment.