Skip to content
This repository has been archived by the owner on Nov 27, 2019. It is now read-only.

Scrolling through output jumps #86

Open
frabcus opened this issue Jun 1, 2013 · 2 comments
Open

Scrolling through output jumps #86

frabcus opened this issue Jun 1, 2013 · 2 comments
Labels

Comments

@frabcus
Copy link
Contributor

frabcus commented Jun 1, 2013

If you scroll up the output console, it jumps down to bottom (even if no content has appeared - it shouldn' t jump anyway, and certainly not then!)

@frabcus
Copy link
Contributor Author

frabcus commented Jun 3, 2013

Hmm, this isn't so simple.

This was still a bit jumpy:

        var sel = output.getSelection().getRange()
        var row = output.getFirstVisibleRow()
        output.setValue(text)
        output.getSelection().setSelectionRange(sel)
        output.scrollToRow(row)

Maybe save all of output.getSession() and restore? Will that break things?

@frabcus
Copy link
Contributor Author

frabcus commented Jun 3, 2013

What it should do is keep you stuck to the bottom of the output if already were at the bottom. Otherwise, to keep you looking at what you were.

Extra complicated when things are being trimmed to 10,000 lines.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests

1 participant