From 3453102359038570fb5fa60640e67225e659c45c Mon Sep 17 00:00:00 2001 From: armored-dragon Date: Thu, 27 Mar 2025 11:28:31 -0500 Subject: [PATCH] Only bypass the distance check on load. --- scripts/communityScripts/armored-chat/armored_chat.qml | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/scripts/communityScripts/armored-chat/armored_chat.qml b/scripts/communityScripts/armored-chat/armored_chat.qml index 07eb75c626..f4c66b7b5f 100644 --- a/scripts/communityScripts/armored-chat/armored_chat.qml +++ b/scripts/communityScripts/armored-chat/armored_chat.qml @@ -21,6 +21,7 @@ Rectangle { repeat: false onTriggered: { toScript({type: "initialized"}); + load_scroll_timer.bypassDistanceCheck = true load_scroll_timer.running = true } } @@ -29,8 +30,12 @@ Rectangle { interval: 100 running: false repeat: false + + property bool bypassDistanceCheck: false // One time event. Whether we should bypass the distance check, and scroll to the bottom regardless or not. + onTriggered: { - scrollToBottom(true); + scrollToBottom(bypassDistanceCheck); + bypassDistanceCheck = false; // Set the property to false, this was a one time event! } }