mirror of
https://github.com/Hopiu/fabric.js.git
synced 2026-04-14 03:10:59 +00:00
added "_this" reference for setTimeout
This commit is contained in:
parent
3f14a96c5a
commit
fa8bd1f40b
1 changed files with 2 additions and 1 deletions
|
|
@ -180,8 +180,9 @@
|
|||
if (e.type === 'touchend') {
|
||||
// Wait 400ms before rebinding mousedown to prevent double triggers
|
||||
// from touch devices
|
||||
var _this = this;
|
||||
setTimeout(function() {
|
||||
addListener(this.upperCanvasEl, 'mousedown', this._onMouseDown);
|
||||
addListener(_this.upperCanvasEl, 'mousedown', _this._onMouseDown);
|
||||
}, 400);
|
||||
}
|
||||
},
|
||||
|
|
|
|||
Loading…
Reference in a new issue