Merge pull request #2291 from vsemozhetbyt/patch-8

Fix typo in 2.3.1 (Mouse events)
This commit is contained in:
Ilya Kantor 2020-11-25 09:08:51 +03:00 committed by GitHub
commit fbe2050f13
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -52,7 +52,7 @@ Click-related events always have the `button` property, which allows to get the
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.
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".
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".
The possible values of `event.button` are: