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

Normalise the header selection #52

Merged
merged 1 commit into from
Sep 10, 2024
Merged

Normalise the header selection #52

merged 1 commit into from
Sep 10, 2024

Conversation

rossjones
Copy link
Collaborator

If we select from right to left, then the selection is invalid when used later on. To avoid this we normalise it to ensure that the top left elements are less than or equal to the bottom right elements.

Resolves #49

TODO: When we work on the footer selection we will abstract this code out as it will be re-used there.

If we select from right to left, then the selection is invalid when used
later on.  To avoid this we normalise it to ensure that the top left
elements are less than or equal to the bottom right elements.
Copy link
Member

@simonwo simonwo left a comment

Choose a reason for hiding this comment

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

Works for me!

@rossjones rossjones merged commit 0b600e4 into main Sep 10, 2024
2 checks passed
@rossjones rossjones deleted the normalise-selection branch September 10, 2024 11:31
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

Selecting headers from right to left causes an error
2 participants