Flex 4和ScrollBar stepSize [英] Flex 4 and ScrollBar stepSize

查看:119
本文介绍了Flex 4和ScrollBar stepSize的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想指定要使用VScrollBar滚动的数量. 因此,在Flex 3中,我们具有"lineScrollSize",但是在Flex 4中如何调用此属性? 我以为是VScrolBar.stepSize,但是它什么也没做.

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.

推荐答案

看看

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;
}

这篇关于Flex 4和ScrollBar stepSize的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆