Revert "hterm 1.30: Scrolling speedups."
This caused issues when scrolling selectio off screen. I'm
not sure why and don't have the time to track it down at the
moment.
This reverts commit e3f4e3b6727532d7e9f7a70a2662f65301ef584e.
Change-Id: I780ff539cc79d3bdd2e60cdc5b7adb82e3c3eb77
Reviewed-on: https://chromium-review.googlesource.com/188799
Reviewed-by: Marvelous Marius <mschilder@chromium.org>
Commit-Queue: Marvelous Marius <mschilder@chromium.org>
Tested-by: Robert Ginda <rginda@chromium.org>
diff --git a/hterm/js/hterm_terminal.js b/hterm/js/hterm_terminal.js
index 9f1719b..52af604 100644
--- a/hterm/js/hterm_terminal.js
+++ b/hterm/js/hterm_terminal.js
@@ -699,7 +699,6 @@
this.div_.style.width = this.scrollPort_.characterSize.width *
columnCount + this.scrollPort_.currentScrollbarWidthPx + 'px';
- this.scrollPort_.syncScreenSize();
this.realizeSize_(columnCount, this.screenSize.height);
this.scheduleSyncCursorPosition_();
};
@@ -715,7 +714,6 @@
this.div_.style.height =
this.scrollPort_.characterSize.height * rowCount + 'px';
- this.scrollPort_.syncScreenSize();
this.realizeSize_(this.screenSize.width, rowCount);
this.scheduleSyncCursorPosition_();
};
@@ -2639,9 +2637,9 @@
* programmatic width change.
*/
hterm.Terminal.prototype.onResize_ = function() {
- var columnCount = Math.floor(this.scrollPort_.screenSize.width /
+ var columnCount = Math.floor(this.scrollPort_.getScreenWidth() /
this.scrollPort_.characterSize.width);
- var rowCount = Math.floor(this.scrollPort_.screenSize.height /
+ var rowCount = Math.floor(this.scrollPort_.getScreenHeight() /
this.scrollPort_.characterSize.height);
if (columnCount <= 0 || rowCount <= 0) {