Skip to content

Commit

Permalink
Fix scroll freeze
Browse files Browse the repository at this point in the history
  • Loading branch information
Yaraslaut committed Nov 26, 2023
1 parent 9c3073d commit 89e7eda
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/contour/ui.template/Terminal.qml.in
Original file line number Diff line number Diff line change
Expand Up @@ -187,7 +187,7 @@ ContourTerminal
let vt = vtWidget.session;
let totalLineCount = (vt.pageLineCount + vt.historyLineCount);

vbar.position = (vt.historyLineCount - vt.scrollOffset) / totalLineCount;
vbar.position = Math.round((vt.historyLineCount - vt.scrollOffset) / totalLineCount);
}

function updateSizeWidget() {
Expand Down

0 comments on commit 89e7eda

Please sign in to comment.