ZMYaro / paintz

A simple drawing app that runs in a web browser, designed to be an MS Paint substitute for Chromebooks and other Chrome OS devices. PaintZ is free, but please consider supporting development at https://ko-fi.com/ZMYaro or https://patreon.com/ZMYaro.
https://paintz.app
53 stars 11 forks source link

Make Ctrl+Alt+MouseWheel zoom the canvas #244

Closed ZMYaro closed 2 years ago

ZMYaro commented 2 years ago

Ctrl+MouseWheel should still zoom the whole window since that is a consistent browser accessibility shortcut, but an equivalent to Win7 Paint's Ctrl+MouseWheel shortcut should still be available. Ctrl+Alt+MouseWheel would be consistent with the existing Ctrl+Alt+= and Ctrl+Alt+- shortcuts.

ZMYaro commented 2 years ago

Hit a bit of a snag: Alt+touchpad pinch gesture still registers as Ctrl+MouseWheel, not Ctrl+Alt+MouseWheel. After fiddling for a bit, I am going to make the call that Ctrl+MouseWheel or Ctrl+Alt+MouseWheel zooms the canvas if the pointer is over the canvas or app background, and performs the browser default behavior if the pointer is over the app UI (i.e. top toolbar, bottom bar, or a dialog).