From c78c249b77a1d96cc817780d203582f52f7b007d Mon Sep 17 00:00:00 2001 From: Jordan Acosta Date: Sat, 16 Sep 2017 04:06:47 -0700 Subject: [PATCH] fixed on touch start --- HEADER.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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