stamen / modestmaps-js

Modest Maps javascript port
http://modestmaps.com
566 stars 152 forks source link

MouseHandler should support disabling the mousewheel #35

Closed tmcw closed 13 years ago

tmcw commented 13 years ago

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.

RandomEtc commented 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

tmcw commented 13 years ago

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.

tmcw commented 13 years ago

Okay, tested, merged, tagged as v0.17.0