ten1seven / what-input

A global utility for tracking the current input method (mouse/pointer, keyboard or touch).
https://ten1seven.github.io/what-input
MIT License
1.35k stars 89 forks source link

Scrolling page with mouse in window changes intent #52

Closed jasonhibbs closed 7 years ago

jasonhibbs commented 7 years ago

[data-whatintent] is changed to mouse if the pointer is in a window when the page scrolls. I believe this is because mousemove is fired.

ten1seven commented 7 years ago

Nice catch @jasonhibbs, thanks!

ten1seven commented 7 years ago

@jasonhibbs just published an fix for this as version 4.1.0. Please take a look and let me know what you think.

jasonhibbs commented 7 years ago

Solves the issue perfectly where checked in Chrome, thanks!

ten1seven commented 7 years ago

Sweet!