-
Notifications
You must be signed in to change notification settings - Fork 29
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
using both mouse wheel and trackpad gives inconsistent results #1
Comments
I'm not able to recreate this using a Macbook Air trackpad and Apple Mouse with Scroll Ball. The delta is relative to the speed of scrolling, but if I'm careful to keep the speed slow, I'm able to switch from my trackpad to the mouse and back again, whilst retaining +/-1 deltas. Also in Mac OS X (10.8.5), Chrome 35. I wonder if the type of mouse (or other hardware variations) makes a difference? |
Thanks for having a look. |
OK, I've got a PC mouse at home, will check it out and get back to you. |
I finally got some time in the home office, and can recreate this issue exactly as described with a Dell mouse. Will investigate further. |
Thanks |
Any news on this? Thank you 👍 |
Sorry for the lack of progress on this, I'm on hols at the moment, will be back in a week or 2. |
So it appears that jquery-mousewheel had the same issue, resolved in their 3.1.6 branch. This was a breaking change in their API, from 'event.delta, event.deltaX, event.deltaY' to 'event.deltaX, event.deltaY, event.deltaFactor'. The deltaFactor property accounts for the different scrolling speed/resolutions which are manifest in this issue. So the task here is to port the latest delta normalisation code from the current stable version of jquery.mousewheel to hamster.js. |
+1 |
What is the state of this issue? |
Hello, seems there has been no progress with issue. I am having some problems with wheelevent in the latest Firefox versions, also seems to be issue in IE 11. The problems seems to be with the
|
Ran into this issue too. |
Ok, my problem is Safari's inertial scrolling. You do an instant touch gesture, and Safari keeps emitting scroll events for over 800 milliseconds. Total bummer! :( I ended up conditionally throttling the callback: 1s for Safari, 100ms for non-Safari. |
Same issue here. A mouse on OSX would make the scroll super slow while using the trackpad works fine. |
I do have the same issue with jquery-mousewheel. If I just use the event.deltaY this is absolutely the same; if I use |
Still having this issue. How do we normalize this? |
@qrpike You have to check the deltaMode, for example like this.
|
Mixing both mouse wheel and trackpad gives inconsistent results.
On the demo page, on rectangle #2:
Mac OS X, chrome 35
The text was updated successfully, but these errors were encountered: