From 617e68cc71bf89a878d2832e10cfe90183d668d7 Mon Sep 17 00:00:00 2001 From: miruka Date: Sat, 7 Mar 2020 12:37:39 -0400 Subject: [PATCH] Fix main pane list position when kb-scrolling top --- src/gui/MainPane/AccountRoomsList.qml | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/src/gui/MainPane/AccountRoomsList.qml b/src/gui/MainPane/AccountRoomsList.qml index 5136a274..13a1f6f4 100644 --- a/src/gui/MainPane/AccountRoomsList.qml +++ b/src/gui/MainPane/AccountRoomsList.qml @@ -41,11 +41,8 @@ HListView { Binding { target: mainPaneList property: "contentY" - value: Math.max( - 0, - highlightRectangle.y + highlightRectangle.height / 2 - - mainPaneList.height / 2, - ) + value: highlightRectangle.y + highlightRectangle.height / 2 - + mainPaneList.height / 2 delayed: true when: yAnimation.running }