forked from LadybirdBrowser/ladybird
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
LibWeb: Improve reliability of text selection
This commit makes 2 changes, which make text selection work as expected in most cases. Firstly, when performing a hit text of type `TextCursor`, we only consider positions that are vertically within the fragment and to the right of that fragment to be hits. Secondly, we now only consider hits on nodes of type `Text` when extending the current selection on mousemove. This introduces a slight regression in that the start of a fragment is no longer selected if the user clicks to the left of it.
- Loading branch information
Showing
2 changed files
with
5 additions
and
11 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters