Hi,

private function mouseDownHandler(event:MouseEvent):void
{
  if (event.currentTarget == canvas.verticalScrollBar ||
     event.currentTarget == canvas.horizontalScrollBar)
  {
     return;
  }

  //.... do drag stuff
}

Peace, Mike

On 5/30/07, Mark Ingram <[EMAIL PROTECTED]> wrote:

   Hi, I have a canvas control with auto scroll bar policy. I can perform
click and drag operations on my canvas, but I've noticed a problem when
scrolling – it thinks I am trying to drag! (this is due to the mouseDown
event on my canvas – the scroll bar events end up in here too).



How can I check that a click event didn't come from a scroll bar?



Thanks,



Mark










--
Teoti Graphix
http://www.teotigraphix.com

Blog - Flex2Components
http://www.flex2components.com

You can find more by solving the problem then by 'asking the question'.

Reply via email to