input: add live pinch cursor zoom #14049
Conversation
|
Hello and thank you for making a PR to Hyprland! Please check the PR Guidelines and make sure your PR follows them. If your code can be tested, please always add tests. See more here. beep boop, I'm just a bot. A real human will review your PR soon. |
689bbe9 to
fbdd9b0
Compare
fbdd9b0 to
753f4f8
Compare
753f4f8 to
5e3763b
Compare
|
done, thanks for your patience - i know that you're being inundated with prs this was interesting to explore and also a feature i think is really valuable. hopefully there are minimal bugs with it in the future... (lol) will continue to help out on hyprland! |
|
you good it's my job |
|
some tests are failing |
5e3763b to
13203fc
Compare
|
fixed sorry for delay |
|
pls wait for #13817 |
13203fc to
3b48b5e
Compare
3b48b5e to
ee6e4b4
Compare
|
you regress tests (pointer tests are wonky but I see 3 fails not 2 |
ee6e4b4 to
dff7315
Compare
|
fixed was b/c of recent lua changes (sry, was taking exam should've marked it as draft) but ready now |
bro was submitting MRs during the exam |
Describe your PR, what does it fix/add?
Adds a live pinch mode for
cursorZoom. This is the typical continual "zoom" gesturebehavior one expects in windows/macos.
As of this PR
cursorZoomonly supports toggle/mult-style behavior. This patch adds a continual zoom mode according to the pinch scale, keeping the zoom anchored to the initial cursor pos. I found this to most similarly imitate macos/windows zoom.Lastly, I augmented tests by restoring the cursor position after the new gesture block because this was leaking state into the new tests that I added.
Is there anything you want to mention? (unchecked code, possible bugs, found problems, breaking compatibility, etc.)
livename of the zoom mode in the gesture config. Perhaps something moreintuitive would be better.
Is it ready for merging, or does it need work?
r4r.