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.
How can I disable scroll with wheel?
- mkoller
- Posts:741
- Joined: Fri Sep 17, 2010 9:03 am
Re: How can I disable scroll with wheel?
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 ?
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?
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) ^^.
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?
As said, zooming probably changes the scrollbars, therefore you get the scroll events.
The question still stands: why does this impose a problem ?
The question still stands: why does this impose a problem ?