Skip to content

Conversation

@atscott
Copy link
Contributor

@atscott atscott commented Oct 8, 2025

…r traversals

When the scroll position is being restored, this change upates the behavior to use 'instant' rather than the default 'auto', which will be whatever the browser behavior is for 'window.scrollTo'. The 'smooth' behavior does not match how browsers behavior when performing a traversal navigation for MPAs, which is 'instant'.

related to #58258

@atscott atscott added target: patch This PR is targeted for the next patch release area: router labels Oct 8, 2025
@ngbot ngbot bot added this to the Backlog milestone Oct 8, 2025
@atscott atscott requested a review from MarkTechson October 8, 2025 21:35
@atscott atscott force-pushed the instantScrollOnRestoration branch from 78b4d85 to 0aa6a7f Compare October 8, 2025 21:47
…r traversals

When the scroll position is being restored, this change upates the
behavior to use 'instant' rather than the default 'auto', which will
be whatever the browser behavior is for 'window.scrollTo'. The 'smooth'
behavior does not match how browsers behavior when performing a
traversal navigation for MPAs, which is 'instant'.

related to angular#58258
@atscott atscott force-pushed the instantScrollOnRestoration branch from 0aa6a7f to 212859d Compare October 8, 2025 22:06
Copy link
Contributor

@MarkTechson MarkTechson left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM.

@JeanMeche JeanMeche added the action: merge The PR is ready for merge by the caretaker label Oct 9, 2025
@AndrewKushnir
Copy link
Contributor

This PR was merged into the repository. The changes were merged into the following branches:

AndrewKushnir pushed a commit that referenced this pull request Oct 9, 2025
…r traversals (#64299)

When the scroll position is being restored, this change upates the
behavior to use 'instant' rather than the default 'auto', which will
be whatever the browser behavior is for 'window.scrollTo'. The 'smooth'
behavior does not match how browsers behavior when performing a
traversal navigation for MPAs, which is 'instant'.

related to #58258

PR Close #64299
@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 Nov 9, 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: router target: patch This PR is targeted for the next patch release

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants