X-Git-Url: https://git.quassel-irc.org/?p=quassel.git;a=blobdiff_plain;f=src%2Fqtui%2Fchatview.cpp;h=ed71dd07a2336109fce6053fc72c8725631be96f;hp=6e55bba6b66f722b3e3b304ec7b9a2c5b4f844eb;hb=5a94027ffed6c97b839a6104e2d572a876a995d8;hpb=dcdc88676f6bf6c961c554e1ff0d160082ba0973 diff --git a/src/qtui/chatview.cpp b/src/qtui/chatview.cpp index 6e55bba6..ed71dd07 100644 --- a/src/qtui/chatview.cpp +++ b/src/qtui/chatview.cpp @@ -84,7 +84,7 @@ void ChatView::lastLineChanged(QGraphicsItem *chatLine, qreal offset) { Q_UNUSED(chatLine) QAbstractSlider *vbar = verticalScrollBar(); Q_ASSERT(vbar); - if(vbar->maximum() - vbar->value() <= offset + 5) { // 5px grace area + if(vbar->maximum() - vbar->value() <= (offset + 5) * _currentScaleFactor ) { // 5px grace area vbar->setValue(vbar->maximum()); } }