anyone want to make $40? if they can figure this out i'll paypal into their
account instantly.
On 4/22/07, dorkie dork from dorktown <[EMAIL PROTECTED]>
wrote:
i think i figured this out by adding the delta to the point.y but when i
use the thumbtrack the delta trick doesn't work. so if i can turn it off
when the user is scrolling with the scrollthumb rather clicking the up or
down arrows i think that will handle both situations.
i found the isScrolling property in the ScrollBar class but it is
internal:
public class ScrollBar extends UIComponent
/**
* @private
* true if servicing a scroll event.
*/
mx_internal var isScrolling:Boolean;
is there any other way i can tell if the user is scrolling the Application
with the thumbtrack? i'm listening to the application scroll event.
parentApplication.addEventListener (ScrollEvent.SCROLL,htmlScrollHandler);
On 4/21/07, dorkie dork from dorktown <[EMAIL PROTECTED] >
wrote:
>
> I've added an event listener to the Application ScrollEvent. When the
> user scrolls I get the position of my component in the global scope. What is
> weird is that if I drag the thumb track the component moves but it is
> sometimes off by a few pixels. As soon as I release the mouse button
> (mouseUp on the thumbtrack) my component snaps into the correct place. The
> correct positioning occurs. If I click on the up and down arrows of the
> scrollbar the component moves but it is off by a few pixels (same behavior
> as when I drag the thumb track).
>
> There is definately something different happening when a user releases
> the thumb track than when they are only clicking the up and down arrows.
> This difference is preventing my component from updating to the correct
> position.
>
>
> parentApplication.addEventListener(ScrollEvent.SCROLL
> ,htmlScrollHandler);
>