From f204cb3666d7a089a01d3a71840bc799403aab0e Mon Sep 17 00:00:00 2001 From: Michail Vourlakos Date: Fri, 30 Dec 2016 19:25:52 +0200 Subject: [PATCH] fix some blocking animation behavior from applets --- containment/contents/ui/AppletItem.qml | 33 +++++++++++++------------- 1 file changed, 17 insertions(+), 16 deletions(-) diff --git a/containment/contents/ui/AppletItem.qml b/containment/contents/ui/AppletItem.qml index fab53d195..49c3439ae 100644 --- a/containment/contents/ui/AppletItem.qml +++ b/containment/contents/ui/AppletItem.qml @@ -758,30 +758,31 @@ Item { } onPositionChanged: { - if(!pressed){ - if (root.isHorizontal){ - var step = Math.abs(layoutsContainer.currentSpot-mouse.x); - if (step >= container.animationStep){ - layoutsContainer.hoveredIndex = index; - layoutsContainer.currentSpot = mouse.x; - - wrapper.calculateScales(mouse.x); - } + // if(!pressed){ + if (root.isHorizontal){ + var step = Math.abs(layoutsContainer.currentSpot-mouse.x); + if (step >= container.animationStep){ + layoutsContainer.hoveredIndex = index; + layoutsContainer.currentSpot = mouse.x; + + wrapper.calculateScales(mouse.x); } - else{ - var step = Math.abs(layoutsContainer.currentSpot-mouse.y); - if (step >= container.animationStep){ - layoutsContainer.hoveredIndex = index; - layoutsContainer.currentSpot = mouse.y; + } + else{ + var step = Math.abs(layoutsContainer.currentSpot-mouse.y); + if (step >= container.animationStep){ + layoutsContainer.hoveredIndex = index; + layoutsContainer.currentSpot = mouse.y; - wrapper.calculateScales(mouse.y); - } + wrapper.calculateScales(mouse.y); } } + // } mouse.accepted = false; } onPressed: pressed = true; + onReleased: pressed = false; } //BEGIN states