You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: 2-ui/99-ui-misc/02-selection-range/article.md
+1-1Lines changed: 1 addition & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -377,7 +377,7 @@ E.g. if the user starts selecting with mouse and goes from "Example" to "italic"
377
377
378
378
There are events on to keep track of selection:
379
379
380
-
-`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.
380
+
-`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.
381
381
- 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.
382
382
-`document.onselectionchange` -- whenever a selection changes or starts.
383
383
- Please note: this handler can be set only on `document`, it tracks all selections in it.
0 commit comments