mirror of
https://github.com/KDE/latte-dock.git
synced 2025-08-15 21:49:28 +03:00
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.
This commit is contained in:
@ -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
|
||||
|
Reference in New Issue
Block a user