do not show gutter tooltip while selecting
This commit is contained in:
parent
8edefd21a7
commit
a44236cfcc
2 changed files with 4 additions and 1 deletions
|
|
@ -130,7 +130,7 @@ function GutterHandler(mouseHandler) {
|
|||
return;
|
||||
tooltipTimeout = setTimeout(function() {
|
||||
tooltipTimeout = null;
|
||||
if (mouseEvent)
|
||||
if (mouseEvent && !mouseHandler.isMousePressed)
|
||||
showTooltip();
|
||||
else
|
||||
hideTooltip();
|
||||
|
|
|
|||
|
|
@ -115,6 +115,8 @@ var MouseHandler = function(editor) {
|
|||
|
||||
this.x = ev.x;
|
||||
this.y = ev.y;
|
||||
|
||||
this.isMousePressed = true;
|
||||
|
||||
// do not move textarea during selection
|
||||
var renderer = this.editor.renderer;
|
||||
|
|
@ -135,6 +137,7 @@ var MouseHandler = function(editor) {
|
|||
renderer.$keepTextAreaAtCursor = true;
|
||||
renderer.$moveTextAreaToCursor();
|
||||
}
|
||||
self.isMousePressed = false;
|
||||
};
|
||||
|
||||
var onCaptureInterval = function() {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue