Fix documentation in README
This commit is contained in:
@@ -393,9 +393,13 @@ It's called every time a page is switched, even for history navigation.
|
||||
|
||||
Set to `false` to disable this behavior.
|
||||
|
||||
##### `scrollTo` (Integer, default: `0`)
|
||||
##### `scrollTo` (Integer | \[Integer, Integer\] | False, default: `0`)
|
||||
|
||||
Value (in px from the top of the page) to scroll to when a page is switched.
|
||||
When set to an integer, this is the value (in px from the top of the page) to scroll to when a page is switched.
|
||||
|
||||
When set to an array of 2 integers (\[x, y\]), this is the value to scroll both horizontally and vertically.
|
||||
|
||||
Set this to `false` to disable scrolling, which will mean the page will stay in that same position it was before loading the new elements.
|
||||
|
||||
##### `scrollRestoration` (Boolean, default: `true`)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user