mirror of
https://github.com/lubosz/overte.git
synced 2025-08-07 19:01:09 +02:00
Scroll to bottom when changing page.
Signed-off-by: Armored Dragon <publicmail@armoreddragon.com>
This commit is contained in:
parent
82605c50c4
commit
01306b3971
1 changed files with 6 additions and 3 deletions
|
@ -16,17 +16,18 @@ Rectangle {
|
||||||
// This signal is mostly used to close the "Desktop overlay window" script side
|
// This signal is mostly used to close the "Desktop overlay window" script side
|
||||||
// https://github.com/overte-org/overte/issues/824
|
// https://github.com/overte-org/overte/issues/824
|
||||||
Timer {
|
Timer {
|
||||||
interval: 100
|
interval: 10
|
||||||
running: true
|
running: true
|
||||||
repeat: false
|
repeat: false
|
||||||
onTriggered: {
|
onTriggered: {
|
||||||
toScript({type: "initialized"});
|
toScript({type: "initialized"});
|
||||||
|
load_scroll_timer.running = true
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
Timer {
|
Timer {
|
||||||
id: load_scroll_timer
|
id: load_scroll_timer
|
||||||
interval: 1000
|
interval: 100
|
||||||
running: true
|
running: false
|
||||||
repeat: false
|
repeat: false
|
||||||
onTriggered: {
|
onTriggered: {
|
||||||
scrollToBottom();
|
scrollToBottom();
|
||||||
|
@ -75,6 +76,7 @@ Rectangle {
|
||||||
anchors.fill: parent
|
anchors.fill: parent
|
||||||
onClicked: {
|
onClicked: {
|
||||||
pageVal = "local";
|
pageVal = "local";
|
||||||
|
load_scroll_timer.running = true;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -103,6 +105,7 @@ Rectangle {
|
||||||
anchors.fill: parent
|
anchors.fill: parent
|
||||||
onClicked: {
|
onClicked: {
|
||||||
pageVal = "domain"
|
pageVal = "domain"
|
||||||
|
load_scroll_timer.running = true;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue