mirror of
https://invent.kde.org/marcoa/shift-shell.git
synced 2026-04-29 15:03:09 +00:00
delay scroll reset after launch
This commit is contained in:
parent
036edc24cb
commit
4458d7355e
1 changed files with 8 additions and 3 deletions
|
|
@ -361,12 +361,17 @@ Item {
|
||||||
left: parent.left
|
left: parent.left
|
||||||
right: parent.right
|
right: parent.right
|
||||||
}
|
}
|
||||||
onLaunched: {
|
onLaunched: scrollResetTimer.restart();
|
||||||
|
favoriteStrip: favoriteStrip
|
||||||
|
appletsLayout: appletsLayout
|
||||||
|
}
|
||||||
|
Timer {
|
||||||
|
id: scrollResetTimer
|
||||||
|
interval: 1000
|
||||||
|
onTriggered: {
|
||||||
scrollAnim.to = 0;
|
scrollAnim.to = 0;
|
||||||
scrollAnim.restart();
|
scrollAnim.restart();
|
||||||
}
|
}
|
||||||
favoriteStrip: favoriteStrip
|
|
||||||
appletsLayout: appletsLayout
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue