Rephrase docs

pull/7065/head
Bjorn Lu 5 years ago committed by GitHub
parent a2df22be7b
commit 3f2a5f8d22
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}/> <svelte:window bind:scrollY={y}/>
``` ```
> Note that only subsequent changes to the bound variable of `scrollX` and `scrollY` will be scrolled automatically. To scroll initially, use `scrollTo()` in `onMount()`. > 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.
### `<svelte:body>` ### `<svelte:body>`

Loading…
Cancel
Save