Merge pull request #644 from Ghost-017/patch-4

update
This commit is contained in:
Ilya Kantor 2018-12-05 12:41:12 +03:00 committed by GitHub
commit 86b6987a66
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -202,7 +202,7 @@ On the picture below we can see `scrollHeight` and `scrollTop` for a block with
In other words, `scrollTop` is "how much is scrolled up".
````smart header="`scrollLeft/scrollTop` can be modified"
Most geometry properties that are read-only, but `scrollLeft/scrollTop` can be changed, and the browser will scroll the element.
Most of the geometry properties here are read-only, but `scrollLeft/scrollTop` can be changed, and the browser will scroll the element.
```online
If you click the element below, the code `elem.scrollTop += 10` executes. That makes the element content scroll `10px` down.