@dreamworld/web-util
Advanced tools
Comparing version 1.4.6-update-touch-logic.2 to 1.4.6-update-touch-logic.3
@@ -9,8 +9,11 @@ import once from 'lodash-es/once'; | ||
*/ | ||
export const isTouchDevice = once(() => { | ||
export const isTouchDevice = once( | ||
() => { | ||
if (bowser.platform.type === 'desktop') { | ||
return false; | ||
} | ||
return ('ontouchstart' in window) || | ||
(navigator.maxTouchPoints > 0) || | ||
(navigator.msMaxTouchPoints > 0) || | ||
bowser.platform.type !== 'desktop' ? true : false; | ||
(navigator.msMaxTouchPoints > 0) ? true : false; | ||
} | ||
) |
{ | ||
"name": "@dreamworld/web-util", | ||
"version": "1.4.6-update-touch-logic.2", | ||
"version": "1.4.6-update-touch-logic.3", | ||
"description": "", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
14304
268