Comparing version 3.0.4 to 3.0.5
@@ -103,3 +103,3 @@ 'use strict'; | ||
// deviceType is hybrid: | ||
detectIt.state.detectHover.hover && 'mouse' || detectIt.state.detectHover.none && 'touch' || | ||
detectIt.state.detectPointer.fine && 'mouse' || detectIt.state.detectPointer.coarse && 'touch' || | ||
// if there's no support for hover media queries but detectIt determined it's | ||
@@ -106,0 +106,0 @@ // a hybrid device, then assume it's a mouse first device |
{ | ||
"name": "detect-it", | ||
"version": "3.0.4", | ||
"version": "3.0.5", | ||
"description": "Detect if a device is mouse only, touch only, or hybrid", | ||
@@ -5,0 +5,0 @@ "main": "lib/index.js", |
@@ -85,4 +85,4 @@ import detectHover from 'detect-hover'; | ||
// deviceType is hybrid: | ||
(detectIt.state.detectHover.hover && 'mouse') || | ||
(detectIt.state.detectHover.none && 'touch') || | ||
(detectIt.state.detectPointer.fine && 'mouse') || | ||
(detectIt.state.detectPointer.coarse && 'touch') || | ||
// if there's no support for hover media queries but detectIt determined it's | ||
@@ -89,0 +89,0 @@ // a hybrid device, then assume it's a mouse first device |
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
20206