Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@dreamworld/web-util

Package Overview
Dependencies
Maintainers
4
Versions
78
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@dreamworld/web-util - npm Package Compare versions

Comparing version 1.4.6-update-touch-logic.2 to 1.4.6-update-touch-logic.3

9

isTouchDevice.js

@@ -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",

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc