This commit is contained in:
Ilya Kantor 2019-06-03 16:53:46 +03:00
parent c4593f1a60
commit c92f626701
6 changed files with 18 additions and 16 deletions

View file

@ -32,6 +32,8 @@ For instance:
- `wheel` event -- a mouse wheel roll (a "scrolling" touchpad action generates it too).
- `keydown` event for `key:pageUp` and `key:pageDown`.
Sometimes that may help. But there are more ways to scroll, so it's quite hard to handle all of them. So it's more reliable to use CSS to make something unscrollable, like `overflow` property.
If we add an event handler to these events and `event.preventDefault()` in it, then the scroll won't start.
Sometimes that may help, but it's more reliable to use CSS to make something unscrollable, such as the `overflow` property.
Here are few tasks that you can solve or look through to see the applications on `onscroll`.