mirror of
https://github.com/overte-org/overte.git
synced 2025-04-08 00:52:27 +02:00
Only bypass the distance check on load.
This commit is contained in:
parent
b38237cb8d
commit
3453102359
1 changed files with 6 additions and 1 deletions
|
@ -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!
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue