From bed0cab833471377b47543c17e84e3247022bb5b Mon Sep 17 00:00:00 2001 From: mizzack Date: Sun, 26 Jan 2014 15:36:31 -0500 Subject: [PATCH] Adding nullcheck to touches attr on event. This was throwing errors in IE11 on desktop. Not that it needs gesture support... --- src/mixins/canvas_gestures.mixin.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/mixins/canvas_gestures.mixin.js b/src/mixins/canvas_gestures.mixin.js index f615d293..f262c5ea 100644 --- a/src/mixins/canvas_gestures.mixin.js +++ b/src/mixins/canvas_gestures.mixin.js @@ -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; }