We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1d88ed3 commit e6fa455Copy full SHA for e6fa455
common/content/buffer.js
@@ -754,7 +754,7 @@ const Buffer = Module("buffer", {
754
if (options["scroll"] > 0)
755
this.scrollLines(options["scroll"] * direction);
756
else // scroll half a page down in pixels
757
- elem.scrollTop += elem.scrollHeight / 2 * direction;
+ elem.scrollTop += Buffer.findScrollableWindow().innerHeight / 2 * direction;
758
},
759
760
_scrollByScrollSize: function _scrollByScrollSize(count, direction) {
0 commit comments