toggle scroll from auto based on current scroll

rather than always `false`
This commit is contained in:
Min RK 2015-01-21 11:13:05 -08:00
parent 66450cf2b3
commit ab221f09f9

View File

@ -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;
}