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].
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;
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].