Skip to content
This repository has been archived by the owner on Jun 15, 2021. It is now read-only.

fix creating selection range when endNode contains startNode (#526) #527

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open

fix creating selection range when endNode contains startNode (#526) #527

wants to merge 1 commit into from

Conversation

sauerbraten
Copy link

fixes #526 by also checking that the endNode isn't an ancestor of startNode before reversing the selection range

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Selection.range collapses when selecting the last word of a paragraph
1 participant