How to stop the wheel event propagation

11886
12
12-24-2011 10:46 PM
GennadyOster
New Contributor II
Hi !

I have the flex application (actually, the modified flex viewer) shown inside the iframe on the other page.
When I use wheel to zoom in/out, and the outer page has scroll bar - the wheel event bubbles to this outer page and it is scrolled.
I'd like to disable the wheel event propagation when the mouse pointer is over map.
Is there simple conventional way to do it ?

Thanks in advance.
Regards,
Gennady
Tags (2)
0 Kudos
12 Replies
IvanBespalov
Occasional Contributor III
fix it
private function init():void
{
   //...
   initWheelEvents();
}

if not success, please show your code (ViewerContainer.mxml as it is)


UPD - working application
0 Kudos
JohanMeijer
New Contributor III
Hi Ivan,

Really like the Live train map! Any chance you share some tips on how it works, live updates on AGS services? 🙂

Thanks for the fix, that did it! No more scrolling at http://www.pbl.nl/en/roadsfromrio/trends-in-biodiversity-loss. I thought I had tried it, but browsercaching is also terrible here when debugging flex/flash applications...

To get it to work I also had to add:

init();


to the
private function creationCompleteHandler():void
This is loaded at creationComplete (see s:application at the top of the mxml)

Thanks,
Johan
0 Kudos
IvanBespalov
Occasional Contributor III
I thought I had tried it, but browsercaching is also terrible here when debugging flex/flash applications...


Find
C:\Users\User Name\mm.cfg (if file doesn't exist create it)
How to change flash player debugger configuration file
0 Kudos