JonyEpsilon / gorilla-repl

A rich REPL for Clojure in the notebook style.
http://gorilla-repl.org
MIT License
887 stars 104 forks source link

Scrolling a long input and clicking jumps back to original position #108

Closed silasdavis closed 10 years ago

silasdavis commented 10 years ago

When scrolling a long input, once you have scrolled further than 1 screen page if you click in order to jump the cursor to the location under the mouse, the screen jumps you back to your original location. You can get around this by 'climbing' the column of text by clicking at the top of the page before scrolling.

Seems like a javascript thing.

silasdavis commented 10 years ago

Observed in chromium and firefox under linux

paul-english commented 10 years ago

Yeah, I've seen this a bit too. The problem is definitely a CodeMirror issue. I don't know what version is being used, but maybe they've addressed something similar.

JonyEpsilon commented 10 years ago

Probably the right thing to do on this is to first upgrade to the latest CodeMirror (I think they released a v4 shortly after I last updated) and see if the problem is still there. If it is, then put together an example and file it as a CodeMirror issue.

JonyEpsilon commented 10 years ago

Have upgraded to CM 4.5, but this is still here. Behaviour on the CM site here http://codemirror.net/demo/resize.html is correct, so likely to be something in the Gorilla code.