0
votes

I'm looking for a way to disable the scrolling of the vertical and horizontal scrollbars when scrolling the mouse.

I use the mouse scroll to zoom in and out, and I don't want the scrollbars to scroll while scrolling the mouse wheel.. (But I do need the scrollbars to be visible).

Any way to do this?

Thanks in advance!

2
U mean for whole application ??? or particular component ??? - Exhausted
For the DividedBox component. - Stian Berg Larsen

2 Answers

1
votes

try the following one i am not sure but it might be work.

I am modifying the code its a bit of cheat with the code so i am not sure that i will work but just try this one.

[DivideBoxID].addEventListener(MouseEvent.MOUSE_WHEEL,mouseWheelHandler);


public function mouseWheelHandler():void
{
    //Leave this space blank..  
}
1
votes
[DivideBoxID].addEventListener(MouseEvent.MOUSE_WHEEL,mouseWheelHandler);

public function mouseWheelHandler():void
{
    e.stopImmediatePropagation(); 
}