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

fix: sort elements after RTL reordering #5525

Merged
merged 3 commits into from
Jul 28, 2024

Conversation

Nerixyz
Copy link
Contributor

@Nerixyz Nerixyz commented Jul 27, 2024

Since selection depends on elements being in order, this PR sorts the elements after reordering. This can be expensive, but allows selection of the text. As mentioned in the changelog entry, selection is still wrong, but now it's consistently wrong, which is an improvement.

It might not be too hard to get a more correct selection for RTL messages now (i.e. one that is "aligned" to the right instead of the left), but it's not too important for me.

Copy link
Member

@pajlada pajlada left a comment

Choose a reason for hiding this comment

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

Nice! This feels like a good start, even if it's wrong, at least it's wrong in a nicer way

@pajlada pajlada enabled auto-merge (squash) July 28, 2024 10:02
@pajlada pajlada merged commit 5ee5abf into Chatterino:master Jul 28, 2024
17 checks passed
@Nerixyz Nerixyz deleted the experiment/rtl-selection branch July 28, 2024 10:29
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