mirror of
https://github.com/Hopiu/fabric.js.git
synced 2026-05-11 07:13:09 +00:00
Merge pull request #1258 from KTastrophy/fix-1245
added "_this" reference for setTimeout
This commit is contained in:
commit
99d7b1ec2e
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