From 3c62884d9281d246c4bb8525c0e7241d7601ac76 Mon Sep 17 00:00:00 2001 From: Michail Vourlakos <mvourlakos@gmail.com> Date: Fri, 10 Mar 2017 17:57:47 +0200 Subject: [PATCH] fix #204,improve Latte clicking signaling --fix the plasmatube behavior. The clicking animation from Latte was preventing clicking signals to be caught exactly as the plasma frameworks were expecting them. --- containment/contents/ui/AppletItem.qml | 21 ++++++++------------- 1 file changed, 8 insertions(+), 13 deletions(-) diff --git a/containment/contents/ui/AppletItem.qml b/containment/contents/ui/AppletItem.qml index 1eca3c703..bb2fe52f8 100644 --- a/containment/contents/ui/AppletItem.qml +++ b/containment/contents/ui/AppletItem.qml @@ -869,20 +869,9 @@ Item { mouse.accepted = false; } - onContainsMouseChanged: { - // if(!containsMouse){ - // hiddenSpacerLeft.nScale = 0; - // hiddenSpacerRight.nScale = 0; - // } - } - onEntered: { layoutsContainer.hoveredIndex = index; - // mouseEntered = true; - /* icList.mouseWasEntered(index-2, false); - icList.mouseWasEntered(index+2, false); - icList.mouseWasEntered(index-1, true); - icList.mouseWasEntered(index+1, true); */ + if (root.isHorizontal){ layoutsContainer.currentSpot = mouseX; wrapper.calculateScales(mouseX); @@ -921,7 +910,11 @@ Item { mouse.accepted = false; } - onPressed: pressed = true; + onPressed: { + pressed = true; + mouse.accepted = false; + } + onReleased: pressed = false; } @@ -1004,6 +997,8 @@ Item { alwaysRunToEnd: true running: appletMouseArea.pressed + onStopped: appletMouseArea.pressed = false; + ParallelAnimation{ PropertyAnimation { target: clickedEffect