mirror of
https://github.com/KDE/latte-dock.git
synced 2025-03-21 10:50:30 +03:00
delay sliding-in when changing location
--the sliding-in is delayed a bit when changing location in order to create a more predictable animation for applets
This commit is contained in:
parent
35f53e6428
commit
c6d755eb27
@ -570,6 +570,10 @@ Item{
|
||||
SequentialAnimation{
|
||||
id: slidingAnimationAutoHiddenIn
|
||||
|
||||
PauseAnimation{
|
||||
duration: manager.inTempHiding && root.durationTime>0 ? 500 : 0
|
||||
}
|
||||
|
||||
PropertyAnimation {
|
||||
target: layoutsContainer
|
||||
property: root.isVertical ? "x" : "y"
|
||||
@ -593,7 +597,14 @@ Item{
|
||||
|
||||
onStopped: {
|
||||
inSlidingIn = false;
|
||||
|
||||
if (manager.inTempHiding) {
|
||||
manager.inTempHiding = false;
|
||||
updateAutomaticIconSize();
|
||||
}
|
||||
|
||||
manager.inTempHiding = false;
|
||||
updateAutomaticIconSize();
|
||||
|
||||
if (manager.debugMagager) {
|
||||
console.log("showing animation ended...");
|
||||
|
Loading…
x
Reference in New Issue
Block a user