Update site/content/docs/02-template-syntax.md

Co-authored-by: Ben McCann <322311+benmccann@users.noreply.github.com>
pull/7065/head
Bjorn Lu 5 years ago committed by GitHub
parent 3f2a5f8d22
commit ebed9f3cc8
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -1608,7 +1608,7 @@ All except `scrollX` and `scrollY` are readonly.
<svelte:window bind:scrollY={y}/>
```
> Note that only subsequent changes to the bound variable of `scrollX` and `scrollY` will cause scrolling automatically. The initial value will not cause scrolling as it brings accessibility issues. However if the scrolling behaviour is desired, call `scrollTo()` in `onMount()` instead.
> Note that the page will not be scrolled to the initial value to avoid accessibility issues. Only subsequent changes to the bound variable of `scrollX` and `scrollY` will cause scrolling. However, if the scrolling behaviour is desired, call `scrollTo()` in `onMount()`.
### `<svelte:body>`

Loading…
Cancel
Save