make some buttons trigger on mouse down to feel faster

This commit is contained in:
end-4
2025-10-12 16:30:41 +02:00
parent edde61a46c
commit 36b33ba4f1
18 changed files with 35 additions and 34 deletions
@@ -30,7 +30,8 @@ TabButton {
MouseArea {
anchors.fill: parent
cursorShape: Qt.PointingHandCursor
onPressed: (event) => {
onPressed: (event) => {
root.click() // Because the MouseArea already consumed the event
const {x,y} = event
const stateY = buttonBackground.y;
rippleAnim.x = x;
@@ -44,7 +45,6 @@ TabButton {
rippleAnim.restart();
}
onReleased: (event) => {
root.click() // Because the MouseArea already consumed the event
rippleFadeAnim.restart();
}
}