Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Zoom/magnifier #1024

Open
YaLTeR opened this issue Jan 20, 2025 · 0 comments
Open

Zoom/magnifier #1024

YaLTeR opened this issue Jan 20, 2025 · 0 comments
Labels
enhancement New feature or request

Comments

@YaLTeR
Copy link
Owner

YaLTeR commented Jan 20, 2025

Accessibility feature that zooms in the screen around the cursor.

This works https://github.com/negrel/wooz but is a bit fiddly to run.

Need to see how the magnifier works in other compositors, especially GNOME and KDE. I pretty much never used it so I'm not sure what the expected UX is.

Tentatively, I'm thinking discrete actions could look something like:

binds {
    Mod+Alt+WheelScrollUp   { set-zoom-level "+10%"; }
    Mod+Alt+WheelScrollDown { set-zoom-level "-10%"; }
}

But it should ideally be a gesture to use high-precision touchpad swipe input and high-precision scroll inputs (if the mouse supports it).

For other monitors (the ones where the cursor currently isn't) I guess we don't do any zooming?

When opening the screenshot UI, need to see what would feel good to use.

Implementation-wise, idk how cursed it would be to simply scale all render elements on an output? If it works, then it's probably fine for the first implementation. Though, it will do bilinear scaling rather than nearest.

If this doesn't work, or for nearest scaling, we would probably want to render into a texture, then render that texture, upscaled around the cursor with the nearest filter. Not sure how this will work with damage tracking though.

@YaLTeR YaLTeR added the enhancement New feature or request label Jan 20, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant