Skip to content

Commit be80c33

Browse files
authored
Merge pull request #1827 from leviding/patch-12
Fix type error
2 parents 063bb96 + ab7a186 commit be80c33

File tree

1 file changed

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

1 file changed

+3
-4
lines changed

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

+3-4
Original file line numberDiff line numberDiff line change
@@ -65,8 +65,8 @@ But if we track `mousedown` and `mouseup`, then we need it, because these events
6565
There are the three possible values:
6666

6767
- `event.which == 1` -- the left button
68-
- `event.which == 2` - the middle button
69-
- `event.which == 3` - the right button
68+
- `event.which == 2` -- the middle button
69+
- `event.which == 3` -- the right button
7070

7171
The middle button is somewhat exotic right now and is very rarely used.
7272

@@ -116,8 +116,7 @@ For JS-code it means that we should check `if (event.ctrlKey || event.metaKey)`.
116116
```
117117
118118
```warn header="There are also mobile devices"
119-
Keyboard combinations are good as an addition to the workflow. So that if the visitor has a
120-
keyboard -- it works. And if their device doesn't have it -- then there should be another way to do the same.
119+
Keyboard combinations are good as an addition to the workflow. So that if the visitor has a keyboard -- it works. And if their device doesn't have it -- then there should be another way to do the same.
121120
```
122121

123122
## Coordinates: clientX/Y, pageX/Y

0 commit comments

Comments
 (0)