mirror of
https://github.com/HifiExperiments/overte.git
synced 2025-08-09 09:30:09 +02:00
Things will 'just work' once backend is in place
This commit is contained in:
parent
9124e5cf22
commit
e39dd250cd
1 changed files with 12 additions and 2 deletions
|
@ -90,7 +90,9 @@ Column {
|
||||||
online_users: data.details.connections || data.details.concurrency || 0,
|
online_users: data.details.connections || data.details.concurrency || 0,
|
||||||
// Server currently doesn't give isStacked (undefined). Could give bool.
|
// Server currently doesn't give isStacked (undefined). Could give bool.
|
||||||
drillDownToPlace: data.is_stacked || (data.action === 'concurrency'),
|
drillDownToPlace: data.is_stacked || (data.action === 'concurrency'),
|
||||||
isStacked: !!data.is_stacked
|
isStacked: !!data.is_stacked,
|
||||||
|
|
||||||
|
time_before_autoscroll_ms: data.hold_time || 3000
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -146,6 +148,14 @@ Column {
|
||||||
onCountChanged: {
|
onCountChanged: {
|
||||||
if (scroll.currentIndex === -1 && scroll.count > 0 && root.autoScrollTimerEnabled) {
|
if (scroll.currentIndex === -1 && scroll.count > 0 && root.autoScrollTimerEnabled) {
|
||||||
scroll.currentIndex = 0;
|
scroll.currentIndex = 0;
|
||||||
|
autoScrollTimer.interval = suggestions.get(scroll.currentIndex).time_before_autoscroll_ms;
|
||||||
|
autoScrollTimer.start();
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
onCurrentIndexChanged: {
|
||||||
|
if (root.autoScrollTimerEnabled) {
|
||||||
|
autoScrollTimer.interval = suggestions.get(scroll.currentIndex).time_before_autoscroll_ms;
|
||||||
autoScrollTimer.start();
|
autoScrollTimer.start();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -170,7 +180,7 @@ Column {
|
||||||
id: autoScrollTimer;
|
id: autoScrollTimer;
|
||||||
interval: 3000;
|
interval: 3000;
|
||||||
running: false;
|
running: false;
|
||||||
repeat: true;
|
repeat: false;
|
||||||
onTriggered: {
|
onTriggered: {
|
||||||
if (scroll.currentIndex !== -1) {
|
if (scroll.currentIndex !== -1) {
|
||||||
if (scroll.currentIndex === scroll.count - 1) {
|
if (scroll.currentIndex === scroll.count - 1) {
|
||||||
|
|
Loading…
Reference in a new issue