fix #970,parabolic effect fix

During dock sliding-in because the parabolic
effect isnt trigerred immediately but we wait
first the dock to go to its final normal
place we might miss the activation of the
parabolic effect. By catching that signal
we are trying to solve this.
pull/2/head
Michail Vourlakos 7 years ago
parent 94fa4177ac
commit 6881d8fbbe

@ -116,6 +116,7 @@ DragDrop.DropArea {
readonly property bool hasUserSpecifiedBackground: (dock && dock.managedLayout && dock.managedLayout.background.startsWith("/")) ?
true : false
property bool dockIsShownCompletely: !(dockIsHidden || inSlidingIn || inSlidingOut) && !root.editMode
property bool immutable: plasmoid.immutable
property bool indicateAudioStreams: plasmoid.configuration.indicateAudioStreams
property bool inFullJustify: (plasmoid.configuration.panelPosition === Latte.Dock.Justify) && (plasmoid.configuration.maxLength===100)

@ -164,6 +164,7 @@ Item {
property string launcherForRemoval: ""
//BEGIN Latte Dock properties
property bool dockIsShownCompletely: latteDock ? latteDock.dockIsShownCompletely : true
property bool enableShadows: latteDock ? latteDock.enableShadows > 0 : plasmoid.configuration.showShadows
property bool forceHidePanel: false
property bool directRenderDelayerIsRunning: latteDock ? latteDock.directRenderDelayerIsRunning : directRenderDelayerForEnteringTimer.running

@ -337,6 +337,20 @@ MouseArea{
onDragSourceChanged: separatorItem.updateForceHiddenState();
onSeparatorsUpdated: separatorItem.updateForceHiddenState();
//! During dock sliding-in because the parabolic effect isnt trigerred
//! immediately but we wait first the dock to go to its final normal
//! place we might miss the activation of the parabolic effect.
//! By catching that signal we are trying to solve this.
onDockIsShownCompletelyChanged: {
if (dockIsShownCompletely && mainItemContainer.containsMouse) {
if (root.vertical) {
mainItemContainer.mousePosChanged(mainItemContainer.mouseY);
} else {
mainItemContainer.mousePosChanged(mainItemContainer.mouseX);
}
}
}
onGlobalDirectRenderChanged:{
if (root.globalDirectRender && restoreAnimation.running) {
// console.log("Cleat Task Scale !!!!");

Loading…
Cancel
Save