typo
This commit is contained in:
parent
7b76185892
commit
a662e1c7b2
1 changed files with 1 additions and 1 deletions
|
@ -377,7 +377,7 @@ E.g. if the user starts selecting with mouse and goes from "Example" to "italic"
|
|||
|
||||
There are events on to keep track of selection:
|
||||
|
||||
- `elem.onselectstart` -- when a selection *starts* on speficially elemen `elem` (or inside it). For instance, when the user presses the mouse button on it and starts to move the pointer.
|
||||
- `elem.onselectstart` -- when a selection *starts* specifically on element `elem` (or inside it). For instance, when the user presses the mouse button on it and starts to move the pointer.
|
||||
- Preventing the default action cancels the selection start. So starting a selection from this element becomes impossible, but the element is still selectable. The visitor just needs to start the selection from elsewhere.
|
||||
- `document.onselectionchange` -- whenever a selection changes or starts.
|
||||
- Please note: this handler can be set only on `document`, it tracks all selections in it.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue