kopia lustrzana https://github.com/c9/core
fix +11728 Preview on tree selection reopens randomly
rodzic
987002b9ca
commit
9cde7eb0f2
|
@ -172,7 +172,8 @@ function DefaultHandlers(mouseHandler) {
|
||||||
};
|
};
|
||||||
|
|
||||||
this.onMouseUp = function(ev) {
|
this.onMouseUp = function(ev) {
|
||||||
if (this.isMousePressed) return;
|
if (this.isMousePressed == 2) return; // wait until release capture
|
||||||
|
this.isMousePressed = false;
|
||||||
var pos = ev.getDocumentPosition();
|
var pos = ev.getDocumentPosition();
|
||||||
var node = this.editor.provider.findItemAtOffset(pos.y);
|
var node = this.editor.provider.findItemAtOffset(pos.y);
|
||||||
if (node && this.$clickNode && this.$clickNode == node) {
|
if (node && this.$clickNode && this.$clickNode == node) {
|
||||||
|
|
|
@ -87,7 +87,7 @@ var MouseHandler = function(editor) {
|
||||||
this.x = ev.x;
|
this.x = ev.x;
|
||||||
this.y = ev.y;
|
this.y = ev.y;
|
||||||
|
|
||||||
this.isMousePressed = true;
|
this.isMousePressed = 2;
|
||||||
|
|
||||||
// do not move textarea during selection
|
// do not move textarea during selection
|
||||||
var renderer = this.editor.renderer;
|
var renderer = this.editor.renderer;
|
||||||
|
|
Ładowanie…
Reference in New Issue