Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Page not scrolling to the new command prompt if goes beyond the original page. #7

Open
chlee0925 opened this issue Jul 6, 2017 · 2 comments

Comments

@chlee0925
Copy link

Hi! Thanks so much for the repo. I am really enjoying playing with the library.
I found that when I reached the bottom of the page, it was not automatically scrolling to the new command prompt.

How to reproduce:
Keep executing commands till you reach the bottom of the page.

I fixed it by inserting
window.scrollTo(0, document.body.scrollHeight); at the end of resetPrompt function.

If you can reproduce the bug and are happy about my fix, I would love to send you a pull request.
Thanks for reading.

@AVGP
Copy link
Owner

AVGP commented Jul 26, 2017 via email

@chlee0925
Copy link
Author

Thank you so much for your reply!
I have tried Chrome (60.0.3112.90), Firefox (53.0.3), and Safari (10.1.1) and found that only Safari had this issue. The fix will resolve for all three browsers.

Cheers,
Juho

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants