Skip to content

Commit

Permalink
Check fabric.window for ontouchstart (#4302)
Browse files Browse the repository at this point in the history
Fixes #2664
  • Loading branch information
jordan-acosta authored and asturur committed Sep 16, 2017
1 parent 87f4fc9 commit cdd28b0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion HEADER.js
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit cdd28b0

Please sign in to comment.