Activate 100% zoom limit again#21031
Conversation
b3f01dc to
a47afa2
Compare
|
It would be great to receive a review from @dterrahe, as he wrote most of the GTK touchpad / mouse input code and introduced the I'm not sure if we use the
Please correct me if this assumption was wrong. |
1c57c30 to
06965f7
Compare
|
@TurboGit let's wait merging this PR, I wanted to know if there is a simpler solution to re-activating the zoom limit, see message: #21027 (comment) I'm not very happy with the current approach in this PR, which is a kind of a hack to limit zooming. It does not work well, when you do the following:
I believe only reverting #21011 will bring back the old behavior. CC: @masterpiga |
|
I pushed a proper fix by revering #21011 and reverting my previous approach of introducing a hard limit and break the soft-steps. The more I deal with this functionality and code, the less I like it. But let's keep this well-known behavior for release 5.6 and keep the discussion in #21027 going ;) |
d66abf9 to
1061f9c
Compare
|
Works for me, will do.
Ah, I see, I didn't pay attention to this little detail in the
Also sounds good, but I think this should be scoped out for this PR into a separate one, right? |
|
@da-phil : Do not squash the revert though. |
yup. |
This reverts commit b04e36e.
* make scroll limit configurable through config parameter `darkroom/ui/constrain_zoom`, which is TRUE by default, keeping the previous behavior. * refactored the soft-step zooming logic in order to re-use it for pinch-zoom gestures.
1061f9c to
62af432
Compare
|
@TurboGit is the PR tag "default-behavior-change" even correct, given that we keep the same behavior as in the previous release? |
Activate 100% scroll limit again and also make scroll limit configurable through config parameter
darkroom/ui/constrain_zoom, which is TRUE by default, keeping the previousbehavior:
This is an effort to satisfy both use-cases discussed in #21027.
Disclaimer: this work was co-created with Claude.