An open API service indexing awesome lists of open source software.

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

Awesome Lists containing this project

README

          

# has-hover [![unstable](https://img.shields.io/badge/stability-unstable-green.svg)](http://github.com/badges/stability-badges) [![Build Status](https://img.shields.io/travis/dfcreative/has-hover.svg)](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/).

[![npm install has-hover](https://nodei.co/npm/has-hover.png?mini=true)](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).