BUG: ComboBox? : Scrolling via wheel/arrows not working
The combobox list doesnt scroll properly using the scroll arrows or the wheel mouse.
Here is the solution:
1) return a negative number for
ComboBox? .getScrollPosition()
public function getScrollPosition () : Number {
return -(mScrollPosition * itemHeight);
}
2) apply snapping in
ScrollBar? .scroll()
replace this:
mScrollTarget.scrollTo(newPos);
with this:
// do we need to snap?
if (mSnap = undefined) {
// yes, scroll modulo snapfactor
mScrollTarget.scrollTo(-((newPos - (newPos % mSnap)) / mSnap));
} else {
// no, just scroll...
mScrollTarget.scrollTo(newPos);
}
Test case
Environment
| ASAP version: |
0.94 |
| Flash Plugin version: |
|
--
SamAhn - 30 Nov 2006
Follow up
Fix record
Topic revision: r1 - 30 Nov 2006 - 20:36:26 -
SamAhn