Commit 676e970f authored by Sergey.Luzyanin's avatar Sergey.Luzyanin Committed by Alexander.Trofimov

Bug 26081 - Двойной переход по ссылкам в автофигурах

git-svn-id: svn://192.168.3.15/activex/AVS/Sources/TeamlabOffice/trunk/OfficeWeb@61219 954022d7-b5bf-4e40-9824-e11837661b57
parent 7230b309
...@@ -82,6 +82,7 @@ ...@@ -82,6 +82,7 @@
this.clickCounter = new ClickCounter(); this.clickCounter = new ClickCounter();
this.isMousePressed = false; this.isMousePressed = false;
this.isShapeAction = false; this.isShapeAction = false;
this.isUpOnCanvas = false;
// Был ли DblClick обработан в onMouseDown эвенте // Был ли DblClick обработан в onMouseDown эвенте
this.isDblClickInMouseDown = false; this.isDblClickInMouseDown = false;
...@@ -1078,11 +1079,15 @@ ...@@ -1078,11 +1079,15 @@
this.isMousePressed = false; this.isMousePressed = false;
// Shapes // Shapes
if (this.isShapeAction) { if (this.isShapeAction) {
event.isLocked = this.isMousePressed; if(!this.isUpOnCanvas)
event.ClickCount = this.clickCounter.clickCount; {
event.fromWindow = true; event.isLocked = this.isMousePressed;
this.handlers.trigger("graphicObjectMouseUp", event, coord.x, coord.y); event.ClickCount = this.clickCounter.clickCount;
this._changeSelectionDone(event); event.fromWindow = true;
this.handlers.trigger("graphicObjectMouseUp", event, coord.x, coord.y);
this._changeSelectionDone(event);
}
this.isUpOnCanvas = false;
return true; return true;
} }
...@@ -1183,6 +1188,8 @@ ...@@ -1183,6 +1188,8 @@
return; return;
t.isShapeAction = true; t.isShapeAction = true;
t.isUpOnCanvas = false;
t.clickCounter.mouseDownEvent(coord.x, coord.y, event.button); t.clickCounter.mouseDownEvent(coord.x, coord.y, event.button);
event.ClickCount = t.clickCounter.clickCount; event.ClickCount = t.clickCounter.clickCount;
...@@ -1332,8 +1339,16 @@ ...@@ -1332,8 +1339,16 @@
event.ClickCount = this.clickCounter.clickCount; event.ClickCount = this.clickCounter.clickCount;
this.handlers.trigger("graphicObjectMouseUp", event, coord.x, coord.y); this.handlers.trigger("graphicObjectMouseUp", event, coord.x, coord.y);
this._changeSelectionDone(event); this._changeSelectionDone(event);
event.preventDefault && event.preventDefault(); if (asc["editor"].isStartAddShape)
event.stopPropagation && event.stopPropagation(); {
event.preventDefault && event.preventDefault();
event.stopPropagation && event.stopPropagation();
}
else
{
this.isUpOnCanvas = true;
}
return true; return true;
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment