Commit a5aa541b authored by Alexander.Trofimov's avatar Alexander.Trofimov

fix open context menu

parent 81670178
......@@ -1315,10 +1315,10 @@
t.handlers.trigger("graphicObjectMouseDown", event, coord.x, coord.y);
t.handlers.trigger("updateSelectionShape", /*isSelectOnShape*/true);
return;
} else {
t.isShapeAction = false;
}
this.isShapeAction = false;
if (2 === event.detail) {
// Это означает, что это MouseDown для dblClick эвента (его обрабатывать не нужно)
// Порядок эвентов для dblClick - http://javascript.ru/tutorial/events/mouse#dvoynoy-levyy-klik
......@@ -1457,6 +1457,9 @@
/** @param event {MouseEvent} */
asc_CEventsController.prototype._onMouseUp = function (event) {
if (2 === event.button) {
if (this.isShapeAction) {
this.handlers.trigger('onContextMenu', 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