  | |  | onScroller + MouseWheel problem: not precise | onScroller + MouseWheel problem: not precise 2004-02-25 - By arzach
Back i've done this for test:
-- ---- ---- ---- ---- ---- ---- ---- ---- -- createTextField("txtContent",1,0,0,120,100); txtContent.wordWrap = true; txtContent.onScroller = function() { trace(this.scroll); }
// fill the textField txtContent.text = "BEGIN \n" for (var i=2; i<=20; i++) { txtContent.text += i+"\n"; } txtContent.text += "END" -- ---- ---- ---- ---- ---- ---- ---- ---- --
then i scroll it with the mousewheel and find that if i move the wheel slowly the textfield update right and the trace(scroll) show me the right fisrt line in the field. but if I rotate the wheel fast the trace show me not the fisrt line i'm seeing. For example, the textField scroll to the top but the last trace action doesn't show "1", but "4". this means that the onScroller event is fired but it's not precise?
how can i fix this??
thank you, giorgio
=-- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- -- Supported by Fig Leaf Software =-- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- -- Be sure to check the archives and the wiki: http://chattyfig.figleaf.com/ =-- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- -- http://chattyfig.figleaf.com/cgi-bin/ezmlm-cgi?1:mss:105247 =-- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- -- To unsubscribe send a blank e-mail to: Normal Mode: flashcoders-unsubscribe@(protected) Digest Mode: flashcoders-digest-unsubscrive@(protected)
Earn $52 per hosting referral at Lunarpages.
|
|
 |