Touchpad: make gestures optional and allow >100% zooming#20810
Touchpad: make gestures optional and allow >100% zooming#20810da-phil wants to merge 2 commits intodarktable-org:masterfrom
Conversation
|
Just mentioning this, on my thinkpad the darkroom zoom using the touchpad is again broken. |
With this change, or with current master? And with this change, if you set |
|
With master. Broken: no zooming. |
Can you please give this branch a shot and run darktable with input debug outputs ( Ideally, you should see an output similar to this: |
|
@jenshannoschwalm could you please give this PR a shot and share the |
Needs some fixes to be done when rebasing to master ... |
6c9eb40 to
d01526b
Compare
My bad, I didn't notice. You should be good to go now. |
That's what i see when a) starting dt b) open an image in darkroom and try to zoom via the touchpad with two fingers. For very long this lead to zooming in, it was broken and at least for some work again after pascal did the partly revert ... |
Just to be very clear: with "try to zoom via the touchpad with two fingers" you mean pinch zoom (moving two fingers away from each other or towards each other), not scroll zoom (moving two fingers in parallel while pressing CTRL)? |
Aaah, got it now. It feels very strage right now but i guess my "finger memory" will soon adopt. So - yes - it seems to work exactly as intended :-) Thanks ! |
So both (pinch zoom AND scroll zoom) work for you? And it works well? |
This addresses darktable-org#20750. * New option darkroom/ui/touchpad_gestures allows to disable touchpad based pinch zooming, it is enabled by default * Touchpad pinch zooming now is on par with old CTRL + scroll zooming by allowing to zoom beyond 100% * Previous CTRL + scroll zooming is now re-enabled for touchpads next to the gesture based pinch zooming for a happy coexistance
d01526b to
3cc8309
Compare
|
|
Re 1) I see, do you agree that behavior between mouse and touchpad based zooming should be consistent and go up until 1600% without additionally pressing CTRL? I can also remove this "100% barrier" for the mouse input if we agree that there is no advantage of this barrier. Re 2) I think that is a design choice, given that two fingers can now command two sort of gestures: pinch zoom and panning motions, AFAIK this is the default behavior for UI systems which allow such gestures, as otherwise there will be no way to distinguish between a scroll zoom (moving two fingers up and down in parallel) and a panning motion (moving two fingers around in any direction in parallel). |
In fact, no :-) But that's mainly my personal choice. (Although i vaguely remember we had discussions about this. And we chose to make "simple-zooming" to be restricted to 100% as that makes life easier and pixelpeeping is not something we do often. @TurboGit , any opinion on this? ) About (2) i don't care that much as i use the notebook/touchpad only when main system is not available ... If people mainly on systems without a mouse but with touchpad feel more happy with the "new way" i am fine too and my fingers will adopt. |
I'm wondering about the emerging usability issues when zooming beyond 100% is possible.
So you think that we should not have a settings option to disable gestures generally because it might not be used by many people and is essentially just yet another settings option we need to maintain (would be my stance, but I respect if other people want to disable gestures). |
Yes for me and i don't think it's nice :-) Zooming-in centered at a givin location is something i use quite often - and that used to be very easy with one hand - but pixelpeeping? Only when debugging or developing rawspace code :-)
I honestly don't know. Even more preferences - hopefully no. Not knowing because i would always try to avoid any special "two finger tricks". But that's just me. |
Hmmm, I'm thinking about a convenient way how we can limit zoom gestures to 100% while still allowing to zoom in more without any additional keyboard interaction. I think technically it is possible, but might overcomplicate the implementation. Something like: zooming is always limited to 100% during one zoom gesture (either scroll or pinch gesture), if another zoom gesture is done - while zoomed in to 100% already - zooming until 1600% is possible. |
This addresses points (a), (b) and (c) of issue #20750.
Changes:
I'd like to know what folks think about whether we even need (a), as everybody unconditionally like to have touchpad pinch gestures enabled, even on older laptops with bad touchpads (far from Apple-grade quality). I do not have a strong opinion on it, but thought it could be usable.
Also: do you think there is a problem if we allow the previous behavior of CTRL + scroll zooming in addition to pinch gesture based zooming as enabled in (c)?
I tried it out for a while and I like it, as I'm still not used to pinch zooming in darktable and try CTRL + scroll zooming ever so often and sometimes I'm too lazy to do finger gymnastics and prefer simple CTRL + scroll zooming over pinch zooming.
Disclaimer: co-created with copilot.