sidebar: fix weird anim on toggle buttons

This commit is contained in:
end-4
2025-10-21 20:10:52 +02:00
parent d5bccd9bb1
commit a99f6cac5e
2 changed files with 4 additions and 2 deletions
@@ -79,7 +79,9 @@ Button {
animation: Appearance.animation.elementMoveFast.numberAnimation.createObject(this) animation: Appearance.animation.elementMoveFast.numberAnimation.createObject(this)
} }
property alias mouseArea: buttonMouseArea
MouseArea { MouseArea {
id: buttonMouseArea
anchors.fill: parent anchors.fill: parent
cursorShape: Qt.PointingHandCursor cursorShape: Qt.PointingHandCursor
acceptedButtons: Qt.LeftButton | Qt.RightButton | Qt.MiddleButton acceptedButtons: Qt.LeftButton | Qt.RightButton | Qt.MiddleButton
@@ -23,8 +23,8 @@ GroupButton {
baseHeight: root.baseCellHeight baseHeight: root.baseCellHeight
property bool editMode: false property bool editMode: false
enableImplicitWidthAnimation: !editMode enableImplicitWidthAnimation: !editMode && root.mouseArea.containsMouse
enableImplicitHeightAnimation: !editMode enableImplicitHeightAnimation: !editMode && root.mouseArea.containsMouse
Behavior on baseWidth { Behavior on baseWidth {
animation: Appearance.animation.elementMove.numberAnimation.createObject(this) animation: Appearance.animation.elementMove.numberAnimation.createObject(this)
} }