Scroller.maxDragRate - how to set?

classic Classic list List threaded Threaded
3 messages Options
Reply | Threaded
Open this post in threaded view
|

Scroller.maxDragRate - how to set?

Lydecker
Hi,

I notice that in 4.14.0 the constant MAX_DRAG_RATE for the Scroller
component was replaced by the public static property maxDragRate:

JIRA Link <https://issues.apache.org/jira/browse/FLEX-34213>  
Proposal Link
<http://apache-flex-development.2333347.n4.nabble.com/Improvement-of-mobile-scrollings-td41029.html#a41107>  
Recommendation Link
<http://apache-flex-users.2333346.n4.nabble.com/Optimize-speed-on-Android-td15284.html#a15326>  

I also read that the default value is still 30 - it is up to the developer
to set it to a greater number.

How to a do this?

Setting up a scroller:
     var scroller:Scroller = new Scroller();
     scroller.maxDragRate = 60;

is not allowed as it brings back a 'Static member is not accessible
message'.

Sorry for what is probably a basic question.

Thanks!



--
Sent from: http://apache-flex-development.2333347.n4.nabble.com/
Reply | Threaded
Open this post in threaded view
|

Re: Scroller.maxDragRate - how to set?

Lydecker
Solved.

I literally need to just do

Scroller.maxDragRate = 60;


In the creationComplete event of the app.

Thanks



--
Sent from: http://apache-flex-development.2333347.n4.nabble.com/
Reply | Threaded
Open this post in threaded view
|

Re: Scroller.maxDragRate - how to set?

Lydecker
Sorry - as maxDragRate is a static member it doesn't need to be in the
creationComplete - it can just be placed under import statements in the root
MXML file.



--
Sent from: http://apache-flex-development.2333347.n4.nabble.com/