Skip to content

Conversation

@atscott
Copy link
Contributor

@atscott atscott commented Apr 25, 2025

Adds ScrollOptions as an option second argument to ViewportScroller scrollTo* functions.

Part of changes needed to address #58258

Adds ScrollOptions as an option second argument to ViewportScroller
scrollTo* functions.

Part of changes needed to address angular#58258
@atscott atscott added the target: minor This PR is targeted for the next minor release label Apr 25, 2025
@angular-robot angular-robot bot added detected: feature PR contains a feature commit area: common Issues related to APIs in the @angular/common package labels Apr 25, 2025
@ngbot ngbot bot added this to the Backlog milestone Apr 25, 2025
Copy link
Contributor

@AndrewKushnir AndrewKushnir left a 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

@pullapprove pullapprove bot requested a review from kirjs April 25, 2025 21:58
Copy link
Member

@devversion devversion left a 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

@atscott atscott added the action: merge The PR is ready for merge by the caretaker label Apr 29, 2025
Copy link
Contributor

@kirjs kirjs left a 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

expect(() => scroller.setHistoryScrollRestoration('manual')).not.toThrow();
});

it('should not allow overwriting position with options', () => {
Copy link
Contributor

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?

@mmalerba
Copy link
Contributor

This PR was merged into the repository by commit b7d3f3d.

The changes were merged into the following branches: main

@mmalerba mmalerba closed this in b7d3f3d Apr 29, 2025
@angular-automatic-lock-bot
Copy link

This issue has been automatically locked due to inactivity.
Please file a new issue if you are encountering a similar or related problem.

Read more about our automatic conversation locking policy.

This action has been performed automatically by a bot.

@angular-automatic-lock-bot angular-automatic-lock-bot bot locked and limited conversation to collaborators May 30, 2025
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

action: merge The PR is ready for merge by the caretaker area: common Issues related to APIs in the @angular/common package detected: feature PR contains a feature commit target: minor This PR is targeted for the next minor release

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants