Scroll to the end of the page
See original GitHub issueIf the page is long more than the viewport, when the tour
starts, it scrolls down to the end of the page.
A possible workaround (i have the component in the top of the page) is use window.scroll(0, 0)
. But if the component is in the middle, i’m not able to do it.
P.S I’m using a forRoot-forChild
structure (lazy modules)
Versions:
- Tested on Chrome 77.0.3865.90
- Angular 7.0.7
- NgX-joyride 2.2.10
Issue Analytics
- State:
- Created 4 years ago
- Comments:8
Top Results From Across the Web
Scroll Automatically to the Bottom of the Page - Stack Overflow
Sometimes the page extends on scroll to buttom (for example in social networks), to scroll down to the end (ultimate buttom of the...
Read more >How to force scroll to end of page - MSDN - Microsoft
When user clicks a button generating a postback I want to display the hidden panel and force scrolling to the end of the...
Read more >Scroll to Bottom
Click the button and scroll to the end of the current page. That's all it does. Options: You can change the default icon...
Read more >How to Get to the End of a Page with Infinite Scrolling 🖱️
Fortunately, the JavaScript code to go to the bottom of the infinite scrolling page is pretty straightforward if you know the language.
Read more >How to Scroll Automatically to the Bottom of the Page with ...
We can use the window.scrollTo method to scroll to the bottom of the page. ... window.scrollTo(0, document.body.scrollHeight);. We get the div with querySelector ......
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
You can set
overflow:auto|scroll|overlay
to one of the parent element for solving this issue.Big thank you, @fpichlou!
overflow: auto
on my parent div prevented the scrolling wonderfully!