Skip to content

Commit

Permalink
fixed on touch start
Browse files Browse the repository at this point in the history
  • Loading branch information
jordan-acosta authored and asturur committed Sep 16, 2017
1 parent 7baec03 commit c78c249
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion HEADER.js
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit c78c249

Please sign in to comment.