diff --git a/HEADER.js b/HEADER.js index 9053d37ef33..d21a508af9a 100644 --- a/HEADER.js +++ b/HEADER.js @@ -29,7 +29,8 @@ 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