-
Notifications
You must be signed in to change notification settings - Fork 26.2k
feat(common): Allow passing ScrollOptions to ViewportScroller #61002
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
Adds ScrollOptions as an option second argument to ViewportScroller scrollTo* functions. Part of changes needed to address angular#58258
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Reviewed-for: public-api
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
Reviewed-for: public-api
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Reviewed-for: public-api
@@ -36,10 +36,15 @@ describe('BrowserViewportScroller', () => { | |||
expect(() => scroller.setHistoryScrollRestoration('manual')).not.toThrow(); | |||
}); | |||
|
|||
it('should not allow overwriting position with options', () => { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
would be nice to have a test where scrollOption actually matter?
This PR was merged into the repository by commit b7d3f3d. The changes were merged into the following branches: main |
Adds ScrollOptions as an option second argument to ViewportScroller scrollTo* functions.
Part of changes needed to address #58258