Skip to content

Conversation

mwcampbell
Copy link
Contributor

The old ScrollTarget action data wasn't a good fit for what any platform actually supported. So I replaced it with a new ScrollHint which is a copy of Chromium's ScrollType enum, which in turn is a copy of AT-SPI's ScrollType.

The Windows implementation is known to work with Narrator, and the macOS implementation is known to work with VoiceOver. I don't know if there's any way to get Orca to call the ScrollTo method outside of web content. I know that NVDA doesn't call ScrollIntoView outside of web content. All of this can be tested using my virtual-scroll-a11y branch of xilem. That's actually still using the scrolling-wip branch of AccessKit, but it's the same code. I'll delete that branch after this PR is merged and the Xilem branch is rebased.

Copy link
Member

@DataTriny DataTriny left a comment

Choose a reason for hiding this comment

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

Changes look good. I think Orca can trigger these actions with flat review, but the masonary example immediately segfault on my VM, so I can't test.

Copy link
Member

@DataTriny DataTriny left a comment

Choose a reason for hiding this comment

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

Just found one typo. Feel free to merge once it's fixed.

@@ -961,6 +963,37 @@ declare_class!(
.flatten()
}

// We discovered through epxerimentation that when mixing the newer
Copy link
Member

Choose a reason for hiding this comment

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

Suggested change
// We discovered through epxerimentation that when mixing the newer
// We discovered through experimentation that when mixing the newer

@mwcampbell mwcampbell merged commit 1d9b74c into main Jul 15, 2025
16 checks passed
@mwcampbell mwcampbell deleted the scroll-into-view branch July 15, 2025 19:42
@DataTriny DataTriny mentioned this pull request Jul 9, 2025
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