From e3803ceb9a9fa437fbd41a2d70c3c37ab916480f Mon Sep 17 00:00:00 2001 From: Nicolas Werner <nicolas.werner@hotmail.de> Date: Wed, 3 Mar 2021 21:34:24 +0100 Subject: [PATCH] Avoid some duplicate property queries --- resources/qml/MessageView.qml | 2 +- resources/qml/ScrollHelper.qml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/resources/qml/MessageView.qml b/resources/qml/MessageView.qml index eefde0460..0503f4677 100644 --- a/resources/qml/MessageView.qml +++ b/resources/qml/MessageView.qml @@ -203,7 +203,7 @@ ScrollView { TimelineRow { id: timelinerow - y: section.active && section.visible ? section.y + section.height : 0 + y: section.visible && section.active ? section.y + section.height : 0 } Connections { diff --git a/resources/qml/ScrollHelper.qml b/resources/qml/ScrollHelper.qml index 7dc31464a..ab955552a 100644 --- a/resources/qml/ScrollHelper.qml +++ b/resources/qml/ScrollHelper.qml @@ -90,7 +90,7 @@ MouseArea { // Show the scrollbars flickable.flick(0, 0); flickable.contentY = newPos; - cancelFlickStateTimer.start(); + cancelFlickStateTimer.restart(); } Timer { -- GitLab