Detect It Versions Save

Detect if a device is mouseOnly, touchOnly, or hybrid, and if the primary input is mouse or touch.

v4.0.1

3 years ago
  • Support IE11 via #25

v4.0.0

3 years ago
  • Rewritten from the ground up in TypeScript
  • 40% smaller than v3
  • Improved detection, especially for hybrid devices
  • Supports Pointer Events
  • There are breaking changes to the api, please see the readme for the new api
  • Open an issue if you have any questions about upgrading from v3

v3.0.6

3 years ago
  • Bump detect dependencies

v3.0.5

6 years ago
  • Use pointer media query instead of hover media query to determine primaryInput to fix issues on Samsung devices using Chrome v65

v3.0.4

6 years ago
  • Limit Windows Chrome hybrid media query workaround to v59 through v61
  • See #8

v3.0.3

6 years ago
  • Upgrade detect-passive-events to fix bug in Edge v15

v3.0.2

6 years ago
  • Upgrade detect dependencies

v3.0.1

6 years ago
  • Fix issue with Windows Chrome on hybrid devices starting in version 59 where media queries represent a touchOnly device, so if the browser is an affected Windows Chrome version and hasTouch, then assume it's a hybrid with primaryInput: 'mouse'
  • See https://github.com/rafrex/detect-it/issues/8

v3.0.0

7 years ago
  • detectIt.primaryInput replaces primaryHover and primaryPointer, primary hover and pointer can be accessed through detectIt.state.detectHover and detectIt.state.detectPointer
  • Fix for browsers that don't support hover and pointer media queries (see #4)

v2.0.0

7 years ago
  • Remove support for Pointer Events
  • detectIt.hasTouch now indicates that the device supports the Touch Events API, and replaces detectIt.hasTouchEventsApi
  • Add detectIt.hasMouse which indicates that the deviceType is mouseOnly or hybrid