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

avm1: Highlight buttons using their hit bounds #16287

Merged
merged 3 commits into from
May 10, 2024

Conversation

kjarosh
Copy link
Member

@kjarosh kjarosh commented May 10, 2024

Related to #5443. Fixes #15851.

Buttons are always highlighted using their hit bounds.

I guess it does have some sense to it, because their bounds usually change on hover (children are swapped out), which would cause the automatic tab order to change during tabbing. That could potentially create a loop in the tab ordering (soft locking the tab).

This behavior is covered by tests of course.

kjarosh added 3 commits May 10, 2024 23:11
This method returns the world bounds of
the focus highlight for the interactive object.
Buttons are always highlighted using their hit bounds.
I guess it does have some sense to it, because their bounds
usually change on hover (children are swapped out),
which would cause the automatic tab order to change during tabbing.
That could potentially create a loop in the tab ordering
(soft locking the tab).
This test verifies how the highlight behaves for AVM1 buttons.
@Dinnerbone Dinnerbone merged commit 636011e into ruffle-rs:master May 10, 2024
17 checks passed
@kjarosh kjarosh deleted the highlight-invalid-bounds branch May 10, 2024 22:09
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: No status
Development

Successfully merging this pull request may close these issues.

Blox Forever: Incorrect tab highlighting behavior
2 participants