Skip to content

Commit 5ac9b12

Browse files
committed
Update "Mouse events" article
1 parent a71a88e commit 5ac9b12

File tree

1 file changed

+3
-2
lines changed
  • 2-ui/3-event-details/1-mouse-events-basics

1 file changed

+3
-2
lines changed

2-ui/3-event-details/1-mouse-events-basics/article.md

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
12
# Mouse events
23

34
In this chapter we'll get into more details about mouse events and their properties.
@@ -52,7 +53,7 @@ Click-related events always have the `button` property, which allows to get the
5253

5354
We usually don't use it for `click` and `contextmenu` events, because the former happens only on left-click, and the latter -- only on right-click.
5455

55-
From the other hand, `mousedown` and `mouseup` handlers may need `event.button`, because these events trigger on any button, so `button` allows to distinguish between "right-mousedown" and "left-mousedown".
56+
On the other hand, `mousedown` and `mouseup` handlers may need `event.button`, because these events trigger on any button, so `button` allows to distinguish between "right-mousedown" and "left-mousedown".
5657

5758
The possible values of `event.button` are:
5859

@@ -154,7 +155,7 @@ Move the mouse over the input field to see `clientX/clientY` (the example is in
154155

155156
## Preventing selection on mousedown
156157

157-
Double mouse click has a side-effect that may be disturbing in some interfaces: it selects text.
158+
Double mouse click has a side effect that may be disturbing in some interfaces: it selects text.
158159

159160
For instance, double-clicking on the text below selects it in addition to our handler:
160161

0 commit comments

Comments
 (0)