From e28f1222a7e10a6af0292e416c071236b7c33670 Mon Sep 17 00:00:00 2001 From: Jordan Acosta Date: Wed, 13 Sep 2017 09:07:03 -0700 Subject: [PATCH] Check fabric.window for ontouchstart Fixes #2664 --- HEADER.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/HEADER.js b/HEADER.js index 55210589b12..d52f279c539 100644 --- a/HEADER.js +++ b/HEADER.js @@ -26,7 +26,7 @@ else { * True when in environment that supports touch events * @type boolean */ -fabric.isTouchSupported = 'ontouchstart' in fabric.document.documentElement; +fabric.isTouchSupported = 'ontouchstart' in fabric.window; /** * True when in environment that's probably Node.js