Yes, this is something we definitely have to deal with. I am going to try to resolve as many of these issues as possible today in my OL day. Hopefully it works out.
at any rate, I've added the comment to the [now very long] ticket http://trac.openlayers.org/ticket/926#comment:30 erik On 2/27/08, Tim Schaub <[EMAIL PROTECTED]> wrote: > Hey- > > 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 > yet. > > Tim > > 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! > > > > _______________________________________________ > Dev mailing list > [email protected] > http://openlayers.org/mailman/listinfo/dev > _______________________________________________ Dev mailing list [email protected] http://openlayers.org/mailman/listinfo/dev
