Fix darkroom scroll zooming on macOS using magic mouse and pinch zooming on 2nd window#21058
Conversation
|
@MStraeten can you please give this fix a try and share the logs? Thanks. |
|
zooming by dragging on magic mouse and trackpad is fine - unless pinch and zoom was done on trackpad. |
Ah yes, that's also the behavior on Linux with a mouse & touchpad, given that we cannot resolve the ambiguity between scroll-zooming (linearly moving both fingers up/down in parallel) and panning gestures (moving both fingers in either direction), without using another key to differentiate them. As far as I remember, dragging (moving mouse / single finger while clicking) has always been doing a panning motion. Then we come to the design decision which was
The rationale:
After above PRs were merged, two finger gestures (including the scroll one) became the panning gesture, just like the usual dragging works (holding left click / touchpad tap and then moving). And zooming is done with the dedicated and universally used pinch-zoom gesture. Does reverting my PR / going back to a commit before my PR merged (e.g. d436623) bring back the behavior you expect? |
d52d66e to
f0c75a8
Compare
By the way, thanks for the log file, this made the following clear: I need to have another look if I find more time later. |
Also refactor code to avoid code duplication across main & second window pinch zoom handling
ac56042 to
dbccd35
Compare
This PR tries to fix the following regressions caused in #20812: