- From: Marijn Haverbeke <notifications@github.com>
- Date: Thu, 23 Jan 2020 07:50:20 -0800
- To: w3c/selection-api <selection-api@noreply.github.com>
- Cc: Subscribed <subscribed@noreply.github.com>
Received on Thursday, 23 January 2020 15:50:23 UTC
`modify` is useful, but awkward in that it just updates the selection, and provides no way to query a caret motion without messing with the active selection. I'm not opposed to specifying `modify` as it exists, but I think an interface that allows you to _query_ where a motion from a given position would go, without side effects, would be a lot more useful. A further complication with that would be that selections, even cursor selections, contain additional hidden state beyond their parent node + offset (see #57, #32, probably there's more), and that kind of state needs to be accessible and representable to be able to properly model this. -- 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/37#issuecomment-577741495
Received on Thursday, 23 January 2020 15:50:23 UTC