mirror of
https://github.com/Hopiu/fabric.js.git
synced 2026-03-16 22:10:32 +00:00
parent
3b314d11cc
commit
0927a70a64
1 changed files with 2 additions and 1 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Reference in a new issue