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
Arbitrary scrolling (jumping) in clicks in modal UI for notebook #4809
Comments
@fonnesbeck thanks for the report. I think this issue is caused by CodeMirror, but let's see if we can track it down. I think the issue is that when you click on an editor area, CodeMirror will focus the prompt. If the prompt is off screen the browser will scroll it into view. I have a feeling that the logic CodeMirror uses is to jump to the last position of the cursor. Can you play around with your example to see what happens if you first move the cursor to the bottom of the cell, then click away, scroll most of the cell above, then click back. Also, to test this hypothesis, you can try clicking on the prompt area of the cell - it shouldn't jump. Then if you hit "enter" to enable edit mode, you should see the jump. I will try to play around with this as well. But I have a feeling this will be tough to fix give the behavior is burried in CodeMirror and probably is the right thing to do (otherwise if you start typing it will be off screen). |
In the movie, it does not scroll right up to the top (if "the prompt" is what I think it is). |
Sometimes it scrolls upward, sometimes down. Happens a lot, though, and makes editing large cells pretty tough. |
Here's another example where it scrolls up to the previous cursor location. |
@fonnesbeck I think I have fixed these issues in PR #4929 can you test and confirm the fix? |
Based on testing with 2 arbitrary notebooks, it looks good. I will continue working from this PR for awhile and see if anything crops up. |
Fixing various modal/focus related bugs closes ipython#4809 closes ipython#4951
I am experiencing jumping behavior in the new modal UI for IPython notebook much more than I ever did in the original UI. Specifically, clicking into a large cell will arbitrarily scroll upward from the location where I click. I've prepared a movie that shows this behavior explicitly.
Running in Safari 7.0.1 on OS X 10.9.1 using IPython built from master 2 days ago.
The text was updated successfully, but these errors were encountered: