[w3c/selection-api] Having a matching `selectend` event? (#146)

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