diff --git a/src/contour/ui.template/Terminal.qml.in b/src/contour/ui.template/Terminal.qml.in index f45e3279e1..d7b863f24f 100644 --- a/src/contour/ui.template/Terminal.qml.in +++ b/src/contour/ui.template/Terminal.qml.in @@ -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() {