From 352789f79d107a8491393c8bc07bf04a8ee08c2a Mon Sep 17 00:00:00 2001 From: Sebastian Wolf Date: Sun, 14 Feb 2021 11:51:26 +0100 Subject: [PATCH] Disable auto-scroll after context menu interaction, fixes #139 --- qml/components/MessageListViewItem.qml | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/qml/components/MessageListViewItem.qml b/qml/components/MessageListViewItem.qml index 80ea571..203bf09 100644 --- a/qml/components/MessageListViewItem.qml +++ b/qml/components/MessageListViewItem.qml @@ -72,6 +72,12 @@ ListItem { contextMenuLoader.active = true; } } + + onMenuOpenChanged: { + // When opening/closing the context menu, we no longer scroll automatically + chatView.manuallyScrolledToBottom = false; + } + Loader { id: contextMenuLoader active: false