From cdd28b01a220710353f06405f56d39c804495385 Mon Sep 17 00:00:00 2001 From: Jordan Acosta Date: Sat, 16 Sep 2017 04:06:47 -0700 Subject: [PATCH] Check fabric.window for ontouchstart (#4302) Fixes #2664 --- HEADER.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/HEADER.js b/HEADER.js index 55210589..d52f279c 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