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

prevent auto scroll to the top when switching back focus #102

Open
kushalkolar opened this issue Oct 11, 2024 · 2 comments
Open

prevent auto scroll to the top when switching back focus #102

kushalkolar opened this issue Oct 11, 2024 · 2 comments

Comments

@kushalkolar
Copy link
Contributor

I think that when switching the focus from the current jupyter lab tab with a jupyter_rfb switching, and then clicking on the widget and thus returning focus to the jupyterlab tab causes auto-scroll to the top of the image element (I think that's what's happening?)

Video example:

autoscroll-2024-10-11_00.38.42.mp4

some ideas on how we can block this: https://stackoverflow.com/questions/12758021/preventing-page-from-scrolling-on-focus-switching

I will play with it soon, it's annoying 😆

@almarklein
Copy link
Member

Is this the browser doing it, or something in Jupyter?

@kushalkolar
Copy link
Contributor Author

kushalkolar commented Oct 11, 2024 via email

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