openscad/openscad — pull request #708 by donbright (2014-03-19 00:15:04+00:00)
Title: Zoompeace

This patch disables control-mouse-wheel-to-zoom-text in the editor for Mac by default, and enables it by default for Windows/Linux. It also adds an option in preferences to turn it on and off.

there have been many bug reports, and mailing list discussions, mostly from Mac users, about mouse-scroll-wheel zooming of text being a problem in the editor.

the control+mouse-wheel to zoom text is almost a de-facto standard in the linux/windows world. it is used by every major web browser, microsoft word, kate, libreoffice, visual studio, and numerous other text editing programs.

i can only assume the mouse-wheel zoom is used on linux/windows(tm) because the wide variety of monitor sizes and resolutions you deal with in the PC world, and the fact that almost all mice for the past 10+ years in the PC world have had scrollwheels... other than laptops, which have adopted the two-finger-drag as scrollwheel equivalent.

i can only assume things are different in mac because of more standardized screen sizes, as well as the fact that almost all mac mice do not have scrollwheels.

obviously a certain amount of people hate it. a small sampling of the web.

google searches:

"firefox mouse-wheel zoom"
"enable mouse-wheel zoom"

Here are people hating on Visual Studio for implementing it (as noted, it has been a standard feature in dozens of programs for years)

http://stackoverflow.com/questions/2861655/how-do-i-disable-zoom-on-control-scroll-in-visual-studio-2010

This patch will try to adopt the 'typical' behavior expected for most users (disabled for Mac, enabled for Linux/Win), and allow those who hate it to disable it as their preference.