- From: Patrick H. Lauke <notifications@github.com>
- Date: Wed, 06 Oct 2021 02:00:19 -0700
- To: w3c/selection-api <selection-api@noreply.github.com>
- Cc: Subscribed <subscribed@noreply.github.com>
Received on Wednesday, 6 October 2021 09:00:31 UTC
A naive question, and there's probably a good reason why there isn't one already, but: would it make sense to also have a matching `selectend` event that fires once the user is done selecting something? Unless I'm misunderstanding, otherwise the process at the moment to work with the API is: * wait for `selectstart` * keep listening out for `selectionchange` events (which will keep firing as long as the user is still in the process of making the selection) * have some kind of timer/debounce on the change listener, to try and work out when the user is done with selecting things (and/or listen out for `mouseup`, `touchend`, `pointerup`, etc to try and guess when the user finished), and *then* get the selected text with `.getSelection()` -- You are receiving this because you are subscribed to this thread. Reply to this email directly or view it on GitHub: https://github.com/w3c/selection-api/issues/146
Received on Wednesday, 6 October 2021 09:00:31 UTC