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: errors while fast-forwarding selection events #952

Merged
merged 1 commit into from
Aug 11, 2022
Merged

Conversation

YunFeng0817
Copy link
Member

In PR #936, @0jinxing added a great feature: recording and replaying selection. But in the fast-forward mode, all nodes are VirtualNodes (RRNodes). While applying these selection events, document.getSelection() can only recognize real nodes rather than virtual nodes. So that there will be errors in the fast-forward mode. In this PR, I fixed this bug and also improved the test case to cover this situation.

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

Successfully merging this pull request may close these issues.

3 participants