views:

802

answers:

1

I want to specify amount to scroll with VScrollBar. So in Flex 3 we have "lineScrollSize" but how this property called in Flex 4? I thought it VScrolBar.stepSize — but it dose not do anything.

Somebody please help me. I just whant my content to scroll faster on mouse wheel.

A: 

Have a look into LayoutBase.getVerticalScrollPositionDelta. You might want to subclass and override it!

Here's what I did in my own layout class:

override public function getVerticalScrollPositionDelta(navigationUnit:uint):Number {
    var n:Number=super.getVerticalScrollPositionDelta(navigationUnit);
    if (navigationUnit==NavigationUnit.DOWN || navigationUnit==NavigationUnit.UP) return 10*n;
    return n;
}
Quentin
Is there a possiblility to disable mouse wheel scroll (I want to zoom in/out with mouse wheel) ?
peperg
I guess you could return zero, but that's probably a dirty thing to do...
Quentin