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