The question is whether it should be a class property of an instance property.
I’d lean towards a class property. On Oct 3, 2014, at 3:59 PM, Erik de Bruin <e...@ixsoftware.nl> wrote: > I would say that you can best implement this by adding property that you > give the initial value of the constant you mention. Instead of assigning > the constant (elsewhere in the code, I haven’t looked), you would assign > the property. The property setter would have to take care of any additional > assignments during runtime, i.e. when you want to up the value to > 60. > > Would you like to try and create a patch that does this? Simple attach it > to a (new) JIRA ticket and tell this list; a committer will surely pick it > up, check it and apply it to the SDK. If the tests (Mustella) pass, you > will have made a valuable contribution! > > EdB > > > > On Fri, Oct 3, 2014 at 11:37 AM, after24 <vinc...@after24.net> wrote: > >> Hi, >> >> While trying to find the best ways to get smooth scrollings on mobile, no >> matter the type of optimization (pure as3 ItemRenderers...) or settings >> used >> (framerate, stage quality...) the result is always the same : >> >> - The scrolling is jerky when the user touch the screen (a list for >> example) >> and drags its content. >> >> -There is a significative difference of scrolling smoothness depending on >> whether an element is "thrown" or dragged by the user. >> >> The reason is due to a constant in the Spark Scroller code : >> >> /private static const MAX_DRAG_RATE:Number = 30;/ >> >> With this constant, no matter the framerate of the application, the refresh >> frequency of the viewport content position can't exceed 30 frames per >> second. >> >> Using a monkey patch I set the value of this constant to 60 (just like the >> framerate of the application) and I could observe a very net improvement of >> the scrolling smoothness during drag operations. >> >> May be this value could be changed for a higher one or the constant >> replaced >> by a property that match dynamically the framerate of the application (at >> least when the framerate exceeds 30 fps). >> >> What do you think ? >> >> >> >> -- >> View this message in context: >> http://apache-flex-development.2333347.n4.nabble.com/Improvement-of-mobile-scrollings-tp41029.html >> Sent from the Apache Flex Development mailing list archive at Nabble.com. >> > > > > -- > Ix Multimedia Software > > Jan Luykenstraat 27 > 3521 VB Utrecht > > T. 06-51952295 > I. www.ixsoftware.nl