[OpenLayers-Dev] mouse wheel on popups

Tim Schaub tschaub at openplans.org
Wed Feb 27 13:07:09 EST 2008


Pierre, just a quick note here to say I totally agree.  I think the 
mouse wheel situation is a critical one to fix. (And the solution should 
not be specific to popups.)  Just haven't had the time to get in to it 


Pierre GIRAUD wrote:
> Hello Erik, Tim and all,
> I would first like to congratulate Erik for his great and useful job
> on the new popups. It sounds like it's almost ready to go in.
> However, there are still some issues to fix.
> The most important for me (and a customer I work on this for) is the
> ability to scroll the popup content without any interaction with the
> map (avoid zoom in/out).
> I first wondered I we were able to prevent map from zooming when
> wheeling on controls UI's (LayerSwitcher, panZoomBar) and proposed a
> simple patch to fix this. [1]
> Back to the popup specific issue, my first thought was to observe
> mousewheel events and simply stop event propagation. But, the
> MouseWheel has already observers for those events and as they are
> registered before, they are informed first and the map is zoomed
> in/out. We could imagine dealing with some sort of priority but I
> didn't find a way to do it.
> Should we consider having a proper registry for mousewheel events and
> not simply calling observe() ?
> We could also imagine temporarily disabling the MouseWheel handler.
> Tim, are you confident with the feature proposed by sbenthall [2] ?
> How could we implement this ? Do we have to detect that the mouse
> cursor entered and leaved the popup to call enable/disable the wheel
> handler ?
> Any help on that would be appreciated.
> Regards,
> Pierre
> [1] http://trac.openlayers.org/ticket/1382
> [2] http://trac.openlayers.org/ticket/1339
> !DSPAM:4033,47c29af0271455332866982!

More information about the Dev mailing list