diff --git a/src/mixins/canvas_events.mixin.js b/src/mixins/canvas_events.mixin.js index 676e301d646..f5cfea08916 100644 --- a/src/mixins/canvas_events.mixin.js +++ b/src/mixins/canvas_events.mixin.js @@ -438,6 +438,9 @@ */ __onMouseDown: function (e) { + var target = this.findTarget(e), + pointer = this.getPointer(e, true); + // if right click just fire events var isRightClick = 'which' in e ? e.which === 3 : e.button === 2; if (isRightClick) { @@ -457,9 +460,6 @@ return; } - var target = this.findTarget(e), - pointer = this.getPointer(e, true); - // save pointer for check in __onMouseUp event this._previousPointer = pointer;