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.
pull/1/head
Michail Vourlakos 8 years ago
parent 64711828cf
commit 3c62884d92

@ -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

Loading…
Cancel
Save