https://github.com/dy/has-hover
Test if device has hover support
https://github.com/dy/has-hover
Last synced: 9 months ago
JSON representation
Test if device has hover support
- Host: GitHub
- URL: https://github.com/dy/has-hover
- Owner: dy
- License: mit
- Created: 2017-06-16T18:27:12.000Z (about 9 years ago)
- Default Branch: master
- Last Pushed: 2024-07-12T21:12:18.000Z (almost 2 years ago)
- Last Synced: 2025-08-09T07:41:37.938Z (10 months ago)
- Language: JavaScript
- Homepage: https://dfcreative.github.io/has-hover/
- Size: 5.86 KB
- Stars: 4
- Watchers: 2
- Forks: 4
- Open Issues: 1
-
Metadata Files:
- Readme: readme.md
- License: license
Awesome Lists containing this project
README
# has-hover [](http://github.com/badges/stability-badges) [](https://travis-ci.org/dfcreative/has-hover)
Check if hover is available on the current device. [Try it out](http://dfcreative.github.io/has-hover/).
[](https://npmjs.org/package/has-hover/)
```js
const isHover = require('has-hover')
if (!isHover) {
//do touch-only routine
}
```
If you find edge case, please address [issues](https://github.com/dfcreative/has-hover/issues).