You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: active-rfcs/0000-router-scroll-position.md
+2
Original file line number
Diff line number
Diff line change
@@ -59,6 +59,8 @@ Currently there are two ways of specifying an offset and both use an `x`/`y` coo
59
59
60
60
# Detailed design
61
61
62
+
Even though it is not commented anywhere in the RFC, **`scrollBehavior` can still return a Promise of any of the mentioned types**. It is omitted to focus on the shape of the return type instead of it being able to _await_ inside of `scrollBehavior`.
63
+
62
64
## Deprecating `x` and `y`
63
65
64
66
This aligns with [`Element.scrollTo`](https://developer.mozilla.org/en-US/docs/Web/API/Element/scrollTo) and makes it more natural passing extra options like [`behavior`](https://developer.mozilla.org/en-US/docs/Web/API/ScrollToOptions/behavior).
0 commit comments