I recently discovered that while my usual way to zoom in/out in a browser (Firefox), pressing CTRL
and using the mouse wheel to "scroll up/down" works well on both Firefox and Chromium based browsers, it does not work similarly with the mouse pad.
Even on the same systems Chromium (based browsers) do not take the scroll events sent by the touch pad to use it for zooming, while it does for scrolling.
Wanting to achieve the same behavior on both browsers (I know, that's not a good idea in general) in my personal (pure JavaScript based) web-project, I soon found myself tinkering with eventListener
s and basically re-implementing the zoom-behavior - but without knowing what's really going on in the first place.
Is there a reason for this difference in behavior? It seems to be similar among modern Linux distributions and even Windows..
Is there a common way or guideline to handle control events / gestures in JavaScript when it comes to zooming in (e.g in galleries/drawing apps/maps/..)? Maybe some terminology I should know to inform myself?