eerne / scrollbar

MooTools Scrollbar class (extends Slider)
http://mild.ch/productslider
MIT License
29 stars 9 forks source link

Mousewheel issues #2

Closed brandondurham closed 13 years ago

brandondurham commented 14 years ago

I'm experiencing an odd issue with the mousewheel functionality. Dragging the scroll handle and clicking the scroll track works perfectly. But when using the mousewheel there is at least a 2–3 second delay before scrolling actually begins, and when scrolling does begin it typically only scrolls a short distance.

This issue is occurring in all browsers I have (Safari 5, Firefox 3.5, Firefox 3.6, Google Chrome). It's worth mentioning that I'm using an Apple Magic Mouse. Not sure if there are known issues with MooTools and the Magic Mouse.

I've created a video to try to show what's happening. When you see "SCROLLED" on the screen it means I just swiped the scroll wheel. You'll notice I've also built in some other functionality like an auto-hiding scrollbar and lazy loading of the images, but these aren't interfering. I've removed them and the issue still exists, and I'm experiencing the same issue with your example page.

Here is the video: http://www.amillionthingstodo.com/yay/MouseWheel.mov

brandondurham commented 14 years ago

Any ideas?

eerne commented 14 years ago

I can't reproduce this issue. Should be easy to find out if it has something todo with MagicMouse vs. MooTools mousewheel event, or more generally javascript/mousewheel. Could you try:

eerne commented 14 years ago
bastilian commented 14 years ago

Hej,

There is no way that the type of mouse can cause faster scrolling. It depends on your settings. A mousewheel always sends the same value when scrolling.

eerne commented 14 years ago

@bastilian Do you experience slow scrolling with one of the mousewheel links? And did you say you have a MagicMouse? :)

bastilian commented 14 years ago

Yes, i have a MagicMouse. It wasn't slow it was normal to fast.

brandondurham commented 14 years ago

So I've narrowed it down a bit.

With the Magic Mouse I tend to scroll by quickly swiping instead of dragging. This is when the issue occurs—when I swipe. If I just place my finger on the mouse and drag a it little it works perfectly.

eerne commented 14 years ago

Ah thanks for you explanation, now I get what this swipe event is :)

Probably I should make an optional event that uses custom swipe from http://github.com/cpojer/mootools-mobile

eerne commented 13 years ago

@brandondurham I started scrollbar 2.x with some api changes and got rid of Fx.Scroll dependency. There is an experimental branch "touch" https://github.com/eerne/scrollbar/tree/touch which should support swipe events. I'm not that happy with it but maybe someone else got some better implementation.