Repository navigation
Fix text click selection on touch devices #3098 - #4395
Conversation
|
The latest updates on your projects. Learn more about Vercel for Git ↗︎
|
zurfyx
left a comment
There was a problem hiding this comment.
Thank you, can you expand on why a click solution vs selectionchange?
I don't know the exact cause of this, but inside the selectionchange event handler the value of domSelection.anchorNode is null, however in onClick it is not. This happens only with touch event, with mouse it is as expected. touch-selection-debug.mp4 |
zurfyx
left a comment
There was a problem hiding this comment.
Thank you, while I'm not too sure this addresses the root cause let's merge this for now as it addressed an immediate issue
|
Correction: the click handler is likely the best place given that the similar |
This PR fixes #3098