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)
}
property alias mouseArea: buttonMouseArea
MouseArea {
id: buttonMouseArea
anchors.fill: parent
cursorShape: Qt.PointingHandCursor
acceptedButtons: Qt.LeftButton | Qt.RightButton | Qt.MiddleButton
@@ -23,8 +23,8 @@ GroupButton {
baseHeight: root.baseCellHeight
property bool editMode: false
enableImplicitWidthAnimation: !editMode
enableImplicitHeightAnimation: !editMode
enableImplicitWidthAnimation: !editMode && root.mouseArea.containsMouse
enableImplicitHeightAnimation: !editMode && root.mouseArea.containsMouse
Behavior on baseWidth {
animation: Appearance.animation.elementMove.numberAnimation.createObject(this)
}