Title: Expose programmatic scroll completion in `ViewportScroller` · Issue #69979 · angular/angular · GitHub
Open Graph Title: Expose programmatic scroll completion in `ViewportScroller` · Issue #69979 · angular/angular
X Title: Expose programmatic scroll completion in `ViewportScroller` · Issue #69979 · angular/angular
Description: Which @angular/* package(s) are relevant/related to the feature request? router, common Description Chrome 150 introduced Promise-returning programmatic scroll APIs. These Promises indicate when scrolling has finished and whether it was ...
Open Graph Description: Which @angular/* package(s) are relevant/related to the feature request? router, common Description Chrome 150 introduced Promise-returning programmatic scroll APIs. These Promises indicate when sc...
X Description: Which @angular/* package(s) are relevant/related to the feature request? router, common Description Chrome 150 introduced Promise-returning programmatic scroll APIs. These Promises indicate when sc...
Opengraph URL: https://github.com/angular/angular/issues/69979
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Expose programmatic scroll completion in `ViewportScroller`","articleBody":"### Which @angular/* package(s) are relevant/related to the feature request?\n\nrouter, common\n\n### Description\n\n Chrome 150 introduced Promise-returning programmatic scroll APIs. These Promises indicate when scrolling has finished and whether it was interrupted.\n\nAngular currently exposes:\n\n```ts\nscrollToPosition(position: [number, number], options?: ScrollOptions): void;\nscrollToAnchor(anchor: string, options?: ScrollOptions): void;\n```\n\n`BrowserViewportScroller` calls `window.scrollTo()`, but its return value is discarded.\n\n\n### Proposed solution\n\nCould `ViewportScroller` expose this completion signal through an additive API, for example:\n\n```ts\nscrollToPositionAsync(\n position: [number, number],\n options?: ScrollOptions,\n): Promise\u003cScrollResult>;\n\nscrollToAnchorAsync(\n anchor: string,\n options?: ScrollOptions,\n): Promise\u003cScrollResult>;\n```\n\nThis would allow applications, and potentially the Router in a follow-up, to wait for smooth scrolling to finish and detect interrupted scroll operations.\n\nThe existing synchronous methods could remain unchanged for backwards compatibility.\n\nReferences\n* https://developer.chrome.com/release-notes/150#programmatic-scroll-promises\n* https://developer.mozilla.org/en-US/docs/Web/API/Element/scrollTo\n* https://developer.mozilla.org/en-US/docs/Web/API/Window/scrollTo","author":{"url":"https://github.com/SkyZeroZx","@type":"Person","name":"SkyZeroZx"},"datePublished":"2026-07-28T15:47:44Z","url":"https://github.com/angular/angular/issues/69979"}
| react-profiling | 0 |
| react-import-map | react,react-dom,react-dom/client,react-dom/profiling,react-is,react/compiler-runtime,react/jsx-dev-runtime,react/jsx-runtime,scheduler@b8488ee2c322 |
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:17bc4746-987e-e969-ee25-4b4de7fec21d |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | 9F20:7A60E:16D0EDE:1D4BC7D:6B012CE5 |
| html-safe-nonce | c97d11377c57e3ef255e41bd705249e65f267f09f95525509e67970d8dbd5e2b |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI5RjIwOjdBNjBFOjE2RDBFREU6MUQ0QkM3RDo2QjAxMkNFNSIsInZpc2l0b3JfaWQiOiI3MDAyMjI4NjQwNjY2NjkyODM3IiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0= |
| visitor-hmac | ba585ef8a6c66adb43f4d990f82b686498a5a44cab5944f99c4184f1b5ef94d7 |
| hovercard-subject-tag | issue:5000455938 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/angular/angular/69979/issue_layout |
| twitter:image | https://opengraph.githubassets.com/862f72f1e00a9d40e03a6547a70cd38801688de0b31f55a2a8c62e2975fa2508/angular/angular/issues/69979 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/862f72f1e00a9d40e03a6547a70cd38801688de0b31f55a2a8c62e2975fa2508/angular/angular/issues/69979 |
| og:image:alt | Which @angular/* package(s) are relevant/related to the feature request? router, common Description Chrome 150 introduced Promise-returning programmatic scroll APIs. These Promises indicate when sc... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | SkyZeroZx |
| hostname | github.com |
| expected-hostname | github.com |
| None | cc5dfdd32f62ebd3223cab3af3aa2b268d3605218237326a48a99d1efd89495c |
| turbo-cache-control | no-preview |
| go-import | github.com/angular/angular git https://github.com/angular/angular.git |
| octolytics-dimension-user_id | 139426 |
| octolytics-dimension-user_login | angular |
| octolytics-dimension-repository_id | 24195339 |
| octolytics-dimension-repository_nwo | angular/angular |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 24195339 |
| octolytics-dimension-repository_network_root_nwo | angular/angular |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 8c77c9e8439031ad54c75a250694842892f693e1 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
| react-app-name | issues |
Links:
Viewport: width=device-width