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

Smooth scrolling #7240

Open
maartenbreddels opened this issue Sep 19, 2019 · 4 comments
Open

Smooth scrolling #7240

maartenbreddels opened this issue Sep 19, 2019 · 4 comments
Milestone

Comments

@maartenbreddels
Copy link
Contributor

When a cell gets executed (shift enter), the page may scroll down. If the cells are big (and especially if you are watching someone else work with jupyter lab), it is difficult to see what is going on. If instead, the page would scroll in ~0.2-0.3 seconds, I think it would be much easier to follow what is going on.

@jasongrout
Copy link
Contributor

Do you think a lag like that would be frustrating to quick users? I think it's worth experimenting, but be aware that sometimes that scrolling is actually triggered by focusing and is out of our control.

@jasongrout jasongrout added this to the Future milestone Sep 19, 2019
@maartenbreddels
Copy link
Contributor Author

I think it should be quite quick (0.3 is already quick I think). Also when you would use the arrow keys, the notebook just 'jumps' to the location. If I had some idea (because of a smoother scrolling) where it went, I at least know if I should scroll up or down, and have an idea of how much.

But I agree, it should not get in the way. For instance, doing 10 executions shouldn't pile up to 3 second scrolling. The max scrolling time (between action and arriving) should be max this 0.3 seconds I think.

@jasongrout
Copy link
Contributor

Do you have smooth scrolling turned on for your browser?

@blois
Copy link

blois commented Sep 19, 2019

Should be fairly easy to try with scroll-behavior: smooth on the notebook widget. See https://developer.mozilla.org/en-US/docs/Web/CSS/scroll-behavior.

I experimented with it for a bit but didn't find it to be an overall improvement. This could be an issue with the browser implementation or just my expectations.

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

3 participants