Commit 84605bd3 authored by Dmitry.Vikulov's avatar Dmitry.Vikulov Committed by Alexander.Trofimov

Для графики событие _onWindowMouseUp отправляем только за пределами канвы

git-svn-id: svn://192.168.3.15/activex/AVS/Sources/TeamlabOffice/trunk/OfficeWeb@53985 954022d7-b5bf-4e40-9824-e11837661b57
parent 4284c344
......@@ -609,7 +609,6 @@
t.handlers.trigger("stopCellEditing");
t.isCellEditMode = false;
}
return true;
}
// Двигаемся ли мы в выделенной области
......@@ -988,10 +987,15 @@
// this.vsbApi.evt_mouseup(event);
// this.hsbApi.evt_mouseup(event);
// Shapes
var coord = this._getCoordinates(event);
if ( asc["editor"].isStartAddShape ) {
event.fromWindow = true;
// Отправляем событие только вне канвы
if ( (( coord.x < 0 ) || (coord.y < 0) || (coord.x > this.element.width()) || (coord.y > this.element.height())) && asc["editor"].isStartAddShape ) {
this.isLocked = false;
event.isLocked = false;
event.ClickCount = this.clickCounter.clickCount;
this.handlers.trigger("graphicObjectMouseUp", event, coord.x, coord.y);
this._changeSelectionDone(event);
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