how to allow zoom with mouse wheel and no key pressing
-
A lot of projectcs I used this plugin, which is good, but since a year is not updated… also lacks for entry of json templates for maps, which you can also hack the plugin to achieve.
another big problem I have encountered is when my user try to zoom the map with the mouse-wheel it doesn’t work and asks to press CTRL+ and move the wheel…
which is insane for UX…solution: hack the plugin files and make your own version…
open the functions.js file on the plugin folder.
and look for “mapOptions = {”
under this object you can see all the different options, you can tweak and add the entry:‘gestureHandling’ : ‘greedy’,
to make it work as you need.
cheers
- The topic ‘how to allow zoom with mouse wheel and no key pressing’ is closed to new replies.