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

core: Improve order of automatic tab ordering #15810

Merged
merged 3 commits into from
Apr 1, 2024

Conversation

kjarosh
Copy link
Member

@kjarosh kjarosh commented Mar 30, 2024

Related to #5443.

This patch improves the order of automatic tab ordering, and makes it behave more like in FP. The order after this patch is far from being exactly the same as in FP, but is close enough.

In reality, FP sometimes jumps up with the focus or even ignores some arbitrary objects. However, the exact behavior is very complicated and requires a lot more testing and analysis.

@torokati44 torokati44 added the waiting-on-review Waiting on review from a Ruffle team member label Mar 30, 2024
Copy link
Contributor

@Dinnerbone Dinnerbone left a comment

Choose a reason for hiding this comment

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

LGTM, thank you!

kjarosh added 3 commits April 1, 2024 22:32
This patch improves the order of automatic tab ordering,
and makes it behave more like in FP.
The order after this patch is far from being exactly
the same as in FP, but is close enough.
This test tests a grid with randomized (x,y) positions,
depths, and SWF tag positions.
It proves that mainly the position on the screen
determines the automatic order.
This test verifies the behavior of duplicate (x,y) positions of objects.
Turns out, FP actually ignores other objects with the same position,
retaining only the first one.
@torokati44 torokati44 force-pushed the tab-ordering-order branch from b0ba082 to baf50df Compare April 1, 2024 20:32
@torokati44 torokati44 enabled auto-merge (rebase) April 1, 2024 20:32
@torokati44 torokati44 merged commit f30824b into ruffle-rs:master Apr 1, 2024
17 checks passed
@kjarosh kjarosh deleted the tab-ordering-order branch April 1, 2024 20:53
@Lord-McSweeney Lord-McSweeney removed the waiting-on-review Waiting on review from a Ruffle team member label Apr 19, 2024
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.

4 participants