Skip to content

Commit c51c15c

Browse files
authored
Update 2-ui/1-document/10-size-and-scroll-window/article.md
1 parent 875ec11 commit c51c15c

File tree

1 file changed

+1
-1
lines changed
  • 2-ui/1-document/10-size-and-scroll-window

1 file changed

+1
-1
lines changed

2-ui/1-document/10-size-and-scroll-window/article.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -137,7 +137,7 @@ window.scrollTo({
137137
```online
138138
Демонстрация плавной прокрутки страницы (в Safari прокрутка будет мгновенной):
139139
140-
<button onclick="window.scrollTo({ top: 500, left: 0, behavior: "smooth" })">window.scrollTo({ top: 500, left: 0, behavior: "smooth" })</button>
140+
<button onclick="window.scrollBy({ top: 500, left: 0, behavior: "smooth" })">window.scrollBy({ top: 500, left: 0, behavior: "smooth" })</button>
141141
```
142142
143143
## scrollIntoView

0 commit comments

Comments
 (0)