8000 Add support for scrolling via accesskit / kittest by lucasmerlin · Pull Request #7286 · emilk/egui · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

Add support for scrolling via accesskit / kittest #7286

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

Merged
merged 7 commits into from
Jul 3, 2025

Conversation

lucasmerlin
Copy link
Collaborator

I need to scroll in a snapshot test in my app, and kittest had no utilities for this. Event::MouseWheel is error prone. This adds support for some accesskit scroll actions, and uses this in kittest to add helpers to scroll to a node / scroll the scroll area surrounding a node.

The accesskit code says down/up/left/right Scrolls by approximately one screen in a specific direction.. Unfortunately it's difficult to get the size of a "screen" (I guess that would be the size of the containing scroll area)where I implemented the scrolling, so for now I've hardcoded it to 100px. I think scrolling a fixed amount is still better than not scrolling at all.

@lucasmerlin lucasmerlin force-pushed the lucas/accesskit-kittest-scrolling branch from 9874291 to 8564b73 Compare July 1, 2025 17:36
Copy link
github-actions bot commented Jul 1, 2025

Preview available at https://egui-pr-preview.github.io/pr/7286-lucasaccesskit-kittest-scrolling
Note that it might take a couple seconds for the update to show up after the preview_build workflow has completed.

@lucasmerlin lucasmerlin added accessibility More accessible to e.g. the visually impaired egui egui_kittest labels Jul 1, 2025
lucasmerlin and others added 3 commits July 2, 2025 08:46
@lucasmerlin lucasmerlin merged commit 6d312cc into main Jul 3, 2025
47 checks passed
@lucasmerlin lucasmerlin deleted the lucas/accesskit-kittest-scrolling branch July 3, 2025 10:02
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
accessibility More accessible to e.g. the visually impaired egui_kittest egui
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants
0