dont animate task additions after dragging

v0.7
Michail Vourlakos 7 years ago
parent cefb0bcde5
commit dbf9726f1f

@ -65,6 +65,7 @@ Item {
readonly property bool hasInternalSeparator: parabolicManager.hasInternalSeparator readonly property bool hasInternalSeparator: parabolicManager.hasInternalSeparator
readonly property bool internalSeparatorHidden: parabolicManager.internalSeparatorHidden readonly property bool internalSeparatorHidden: parabolicManager.internalSeparatorHidden
property bool inActivityChange: false property bool inActivityChange: false
property bool inDraggingPhase: false
property bool initializationStep: false //true property bool initializationStep: false //true
property bool initializatedBuffers: true // noInitCreatedBuffers >= tasksStarting ? true : false property bool initializatedBuffers: true // noInitCreatedBuffers >= tasksStarting ? true : false
property bool isHovered: false property bool isHovered: false
@ -333,6 +334,7 @@ Item {
onDragSourceChanged: { onDragSourceChanged: {
if (dragSource == null) { if (dragSource == null) {
restoreDraggingPhaseTimer.start();
root.draggingFinished(); root.draggingFinished();
root.signalActionsBlockHiding(-1); root.signalActionsBlockHiding(-1);
//root.signalDraggingState(false); //root.signalDraggingState(false);
@ -340,6 +342,7 @@ Item {
//updateLaunchersNewArchitecture(); //updateLaunchersNewArchitecture();
tasksModel.syncLaunchers(); tasksModel.syncLaunchers();
} else { } else {
inDraggingPhase = true;
root.signalActionsBlockHiding(1); root.signalActionsBlockHiding(1);
//root.signalDraggingState(true); //root.signalDraggingState(true);
} }
@ -823,7 +826,15 @@ Item {
} }
} }
//this timer restores the draggingPhase flag to false
//after a dragging has finished... This delay is needed
//in order to not animate any tasks are added after a
//dragging
Timer {
id: restoreDraggingPhaseTimer
interval: 150
onTriggered: inDraggingPhase = false;
}
///Red Liner!!! show the upper needed limit for annimations ///Red Liner!!! show the upper needed limit for annimations
Rectangle{ Rectangle{

@ -135,7 +135,7 @@ SequentialAnimation{
|| !launcherIsPresent(mainItemContainer.launcherUrl)) || !launcherIsPresent(mainItemContainer.launcherUrl))
&& mainItemContainer.isStartup); && mainItemContainer.isStartup);
if (!Latte.WindowSystem.compositingActive) { if (!Latte.WindowSystem.compositingActive || root.inDraggingPhase) {
mainItemContainer.visible = true; mainItemContainer.visible = true;
wrapper.tempScaleWidth = 1; wrapper.tempScaleWidth = 1;
wrapper.tempScaleHeight = 1; wrapper.tempScaleHeight = 1;

Loading…
Cancel
Save