Closed tmcw closed 13 years ago
It might be possible to split the mouse handler into click-drag panning handler, double-click zoom handler and mouse-wheel zoom handler? A defaultHandlers Array could be set on Map.prototype, perhaps?
On 31 May 2011 14:55, tmcw reply@reply.github.com wrote:
In a simple options array, it'd be possible to not have the map listen to and kill mousewheel events, allowing for the useful UI tweak on sites that have large maps and need scrolling.
Reply to this email directly or view it on GitHub: https://github.com/stamen/modestmaps-js/issues/35
Great idea, the existing handlers were nice and separate so this wasn't a tricky change. I've got the work in a commit on the handlers branch and will be able to test this out on a project before merging in.
Okay, tested, merged, tagged as v0.17.0
In a simple options array, it'd be possible to not have the map listen to and kill mousewheel events, allowing for the useful UI tweak on sites that have large maps and need scrolling.