From 566aaf3a519c61e22cf52fbe404010236f3ce657 Mon Sep 17 00:00:00 2001 From: miruka Date: Sat, 7 Mar 2020 09:32:56 -0400 Subject: [PATCH] Fix main pane list scrolling? --- src/gui/MainPane/AccountRoomsList.qml | 13 ++++++++----- 1 file changed, 8 insertions(+), 5 deletions(-) diff --git a/src/gui/MainPane/AccountRoomsList.qml b/src/gui/MainPane/AccountRoomsList.qml index 59dd2f30..9236ed8c 100644 --- a/src/gui/MainPane/AccountRoomsList.qml +++ b/src/gui/MainPane/AccountRoomsList.qml @@ -43,15 +43,18 @@ HListView { property: "contentY" value: Math.max( 0, - Math.min( - mainPaneList.contentHeight - mainPaneList.height, - highlightRectangle.y + highlightRectangle.height / 2 - - mainPaneList.height / 2, - ), + highlightRectangle.y + highlightRectangle.height / 2 - + mainPaneList.height / 2, ) delayed: true when: yAnimation.running } + + Connections { + target: mainPaneList + enabled: yAnimation.running + onContentYChanged: mainPaneList.returnToBounds() + } }