
Previously, when scrolling the ToC and reaching the top/bottom, further mousewheel events would result in scrolling the window (and thus the main content). This is standard browser behavior. In the case of the ToC though, the `ScrollSpy` would detect scrolling in the main content and scroll the active ToC to entry into view, thus resetting the scroll position of the ToC. Reproduction: 1. Open `~/guide/template-syntax`. 2. Start scrolling through the long ToC. 3. Try to go to the bottom of the ToC. 4. Once you reach the bottom, the main content starts scrolling down. 5. The first section ("HTML in templates") becomes "active", so the ToC is scrolled back up to make its corresponding entry visible. 6. Go back to step 2. This commit improves the UX, by not allowing the main content to scroll when the cursor is ovr the ToC and the user has scrolled all the way to the top/bottom of it.
Safari (7+), iOS (7+), Edge (14) and IE mobile (11) are tested on BrowserStack.
Angular
Angular is a development platform for building mobile and desktop web applications using Typescript/JavaScript (JS) and other languages.
Quickstart
Want to help?
Want to file a bug, contribute some code, or improve documentation? Excellent! Read up on our guidelines for contributing and then check out one of our issues in the hotlist: community-help.
Description
Languages
TypeScript
86.3%
JavaScript
8.5%
HTML
1.8%
Starlark
1.7%
CSS
1%
Other
0.6%