mirror of
https://github.com/Hopiu/fabric.js.git
synced 2026-05-13 08:13:13 +00:00
Adding nullcheck to touches attr on event.
This was throwing errors in IE11 on desktop. Not that it needs gesture support...
This commit is contained in:
parent
e977372236
commit
bed0cab833
1 changed files with 1 additions and 1 deletions
|
|
@ -14,7 +14,7 @@
|
|||
*/
|
||||
__onTransformGesture: function(e, self) {
|
||||
|
||||
if (this.isDrawingMode || e.touches.length !== 2 || 'gesture' !== self.gesture) {
|
||||
if (this.isDrawingMode || !e.touches || e.touches.length !== 2 || 'gesture' !== self.gesture) {
|
||||
return;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue