Download & Extend

Option to enable/disable scroll wheel zoom

Project:Visitor Info
Version:6.x-1.4
Component:Code
Category:feature request
Priority:normal
Assigned:Unassigned
Status:active

Issue Summary

Hi...I know you just added this feature in 1.14. Thanks, it's great to be able to scroll/zoom. And, as is typical, fixing one thing for one guy creates another guy a problem. :) Might it be possible to get an option to turn off zoom? Thanks, I really appreciate your work!

Comments

#1

In case anyone else is wondering...to disable it for the time being you can comment out line 10 of visitorinfo.js to disable zoom temporarily.

#2

I have no issues right now, but I see a case where it might come back and bite us...

I agree with a checkbox in the module's settings to enable/disable this feature completely.

I would also like to propose a feature that would activate scroll-zooming only after a certain time of hover. Consider this use case...

A page contains:

- text or whatever content.
- the visitors' map.
- some more content.

While one scrolls to the end of such a page page, if they come over the map, instead of the page scrolling continuing as usual, the map zoom is activated. This momentarily confuses the user that expects to reach the end of the page. Hence my proposal for some time threshold on mouse-over before zoom scrolling for the visitors' map is enabled.

Thank you for considering this.

#3

subcribe

#4

I added the option to disable the scroll wheel zoom. I'm attaching 2 patch files, one for the .module and the other for the .js file. Please apply and let me know if you run into any issues.

Thanks,
Tim

AttachmentSize
visitorinfo.module.patch 1.66 KB
visitorinfo.js_.patch 1.14 KB

#5

Is it possible to implement autozoom?

So the map can automatically zoom to fit all visitor markers?

thanks.

#6

@tinohuda,

Please open another feature request issue so I can keep these things separate and my issue queue clean.

Thank you,
Tim

nobody click here