Skip to content

Conversation

@maxdexh
Copy link
Collaborator

@maxdexh maxdexh commented Dec 4, 2025

Makes it so that scrolling moves the camera instead of changing the page, if zooming is available and applicable (i.e. on kitty in fill-screen mode).

I also took the liberty of moving the logic modifying fields of Zoom to inherent impls to make it easier to change the internals of zoom. Also I accidentally left in the zoom cap for ctrl scroll in my last PR, which shouldn't happen again this way.

I also increased the step size for panning to make it feel less sluggish.

@maxdexh maxdexh force-pushed the more-zoom branch 2 times, most recently from 9522c98 to f5e25ab Compare December 4, 2025 14:19
Copy link
Owner

@itsjunetime itsjunetime left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yeah, nice - 1 small annoying nit but it looks nice :)

@maxdexh
Copy link
Collaborator Author

maxdexh commented Dec 5, 2025

I did some testing and found that the behavior felt incomplete because it was missing "hold shift to scroll horizontally", so I implemented that. In the process, I also cleaned up the code by pulling out all logic relating to scrolling into a capture, and introducing a simple Direction enum.

Also all zoom checks now use a consistent can_zoom variable.

@maxdexh maxdexh merged commit 19030f7 into itsjunetime:main Dec 7, 2025
1 check passed
@maxdexh maxdexh deleted the more-zoom branch December 7, 2025 08:32
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants