eerne / scrollbar

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

First tick of the scroll wheel #7

Open paulschwarz opened 13 years ago

paulschwarz commented 13 years ago

This assumes you set up some nice tween effects for your scroll panel as well as the scroll knob.

When the ScrollBar is freshly created the first tick of the scroll wheel doesn't tween smoothly, it jumps (to the right position, but it's not smooth). After that the tween works well. I believe it is a case of telling the tween to go from [NaN, 50] as opposed to [0, 50].

eerne commented 12 years ago

Yep I noticed that too, doing an initiall .scroll(0) should solve this http://jsfiddle.net/UYZZ6/4/ . I'm not yet sure how to fix this and probably scroll should also return this;