Open kushalkolar opened 1 month ago
Is this the browser doing it, or something in Jupyter?
The browser I'm pretty sure
On Fri, Oct 11, 2024, 3:29 AM Almar Klein @.***> wrote:
Is this the browser doing it, or something in Jupyter?
— Reply to this email directly, view it on GitHub https://github.com/vispy/jupyter_rfb/issues/102#issuecomment-2406721616, or unsubscribe https://github.com/notifications/unsubscribe-auth/ACHXXRAZ2JZAXU2VS2UAKM3Z2544NAVCNFSM6AAAAABPYECB4GVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDIMBWG4ZDCNRRGY . You are receiving this because you authored the thread.Message ID: @.***>
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:
https://github.com/user-attachments/assets/96f4b7c3-9792-4381-8e84-db0e772b8711
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 :laughing: