Skip to content

Commit 0c15e1e

Browse files
committed
qml: Only "click" setting if released within its MouseArea
1 parent aae358f commit 0c15e1e

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

src/qml/controls/Setting.qml

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -68,8 +68,12 @@ AbstractButton {
6868
root.state = "ACTIVE"
6969
}
7070
onReleased: {
71-
root.state = "HOVER"
72-
root.clicked()
71+
if (mouseArea.containsMouse) {
72+
root.state = "HOVER"
73+
root.clicked()
74+
} else {
75+
root.state = "FILLED"
76+
}
7377
}
7478
}
7579

0 commit comments

Comments
 (0)