mirror of
https://github.com/fergalmoran/ladybird.git
synced 2025-12-23 01:39:55 +00:00
When the user clicks on a text node, the event handler sets the cursor position to the location that was clicked. But it would then be set back to 0 in the DOM node's focus handler. Leave the cursor alone, unless the the DOM node was never set as the cursor position node (which will occur when the user clicks on the DOM node, but outside the shadow text node). In that case, move the cursor to the end of the text node. The end result here is that the cursor is placed where the user clicked, or set to the end of node if the user clicked outside of the shadow text node.
106 KiB
106 KiB