How can I disable scroll with wheel?

Discussion about recent product features & solutions!
4 posts • Page 1 of 1
yjsid939
Posts:13
Joined: Mon Dec 23, 2013 3:44 am

How can I disable scroll with wheel?

Post by yjsid939 »

I add zoom in/out script with wheel event.

but when I zoom in/out scroll event is also occured.

So if I make 3 wheel event then the panel is act like below

zoom -> scroll -> zoom

I want to know block scroll event.


Thank you.

mkoller
Posts:741
Joined: Fri Sep 17, 2010 9:03 am

Re: How can I disable scroll with wheel?

Post by mkoller »

When you zoom a panel inside an embedded module, then clearly the panel size changes, which also means the scrollbars change, and therefore
the "scrolled" event is triggered.
So the panel is really scrolled. Why is it needed to avoid the scroll event to be activated ?

yjsid939
Posts:13
Joined: Mon Dec 23, 2013 3:44 am

Re: How can I disable scroll with wheel?

Post by yjsid939 »

When I want to zoom in/out my module. I spin my wheel.

In this case first spin makes the panel zoom and after that another spin cause scroll until panel can't be scroll (until edge of the panel) and no zoom.

I want continous zoom and no scroll.

Of course I want to block scroll only in wheel event, temporarily, so I want to know how to that.

Like panningMode(TRUE);


I hope there is scollMode(false) ^^.

mkoller
Posts:741
Joined: Fri Sep 17, 2010 9:03 am

Re: How can I disable scroll with wheel?

Post by mkoller »

As said, zooming probably changes the scrollbars, therefore you get the scroll events.
The question still stands: why does this impose a problem ?

4 posts • Page 1 of 1