mirror of
https://github.com/jupyter/notebook.git
synced 2025-01-12 11:45:38 +08:00
toggle scroll from auto based on current scroll
rather than always `false`
This commit is contained in:
parent
66450cf2b3
commit
ab221f09f9
@ -188,7 +188,7 @@ define([
|
||||
|
||||
OutputArea.prototype.toggle_scroll = function () {
|
||||
if (this.scroll_state == 'auto') {
|
||||
this.scroll_state = false;
|
||||
this.scroll_state = !this.scrolled;
|
||||
} else {
|
||||
this.scroll_state = !this.scroll_state;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user