Skip to content

Commit d0474ae

Browse files
authored
Update article.md
1 parent 0d497c7 commit d0474ae

File tree

1 file changed

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

1 file changed

+1
-1
lines changed

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

+1-1
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ Also we can see the `button` property that allows to detect the mouse button, it
5050

5151
Click-related events always have the `button` property, which allows to get the exact mouse button.
5252

53-
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.
53+
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.
5454

5555
From the other hand, `mousedown` and `mouseup` handlers we may need `event.button`, because these events trigger on any button, so `button` allows to distinguish between "right-mousedown" and "left-mousedown".
5656

0 commit comments

Comments
 (0)