diff --git a/qml/pages/ChatPage.qml b/qml/pages/ChatPage.qml index 19fadce..e66ea2f 100644 --- a/qml/pages/ChatPage.qml +++ b/qml/pages/ChatPage.qml @@ -1050,8 +1050,13 @@ Page { } onHeightChanged: { - var deltaHeight = previousHeight - height; - chatView.contentY = chatView.contentY + deltaHeight; + console.log("Height changed, previous: " + previousHeight + ", now: " + height); + if (previousHeight > height) { + var deltaHeight = previousHeight - height; + chatView.contentY = chatView.contentY + deltaHeight; + } else { + chatView.handleScrollPositionChanged(); + } previousHeight = height; }