Created
February 26, 2020 14:20
-
-
Save AndreKelling/a50e8ea03b04b3e7d08136e865589c9f to your computer and use it in GitHub Desktop.
isMouseUser
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
isMouseUser: function() { | |
// just presumpt that an IE11 user is a mouse user | |
var isIE11 = !!window.msCrypto; | |
return (matchMedia('(pointer:fine)').matches || isIE11); | |
}, |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment