Only bypass the distance check on load.

This commit is contained in:
armored-dragon 2025-03-27 11:28:31 -05:00
parent b38237cb8d
commit 3453102359
No known key found for this signature in database
GPG key ID: C7207ACC3382AD8B

View file

@ -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!
}
}