From ab221f09f9127e759d52b3a0f90ff9afe4b14dd1 Mon Sep 17 00:00:00 2001 From: Min RK Date: Wed, 21 Jan 2015 11:13:05 -0800 Subject: [PATCH] toggle scroll from auto based on current scroll rather than always `false` --- IPython/html/static/notebook/js/outputarea.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/IPython/html/static/notebook/js/outputarea.js b/IPython/html/static/notebook/js/outputarea.js index 41463a169..7523389af 100644 --- a/IPython/html/static/notebook/js/outputarea.js +++ b/IPython/html/static/notebook/js/outputarea.js @@ -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; }