diff --git a/HEADER.js b/HEADER.js index a1ee13cf..1c481068 100644 --- a/HEADER.js +++ b/HEADER.js @@ -32,7 +32,8 @@ else { * True when in environment that supports touch events * @type boolean */ -fabric.isTouchSupported = 'ontouchstart' in fabric.window; +fabric.isTouchSupported = 'ontouchstart' in fabric.window || 'ontouchstart' in fabric.document || + (fabric.window && fabric.window.navigator && fabric.window.navigator.maxTouchPoints > 0); /** * True when in environment that's probably Node.js