ConfigToggle; properly implement behavior on hover lost (fixes #1126)

This commit is contained in:
end-4
2025-02-19 10:21:53 +01:00
parent b025bd2cac
commit 53d7416d91
@@ -69,6 +69,10 @@ export const ConfigToggle = ({
},
child: widgetContent,
onClicked: (self) => self.attribute.toggle(self),
onHoverLost: () => { // mouse away
toggleIcon.toggleClassName('switch-fg-toggling-false', false);
if (enabled.value) toggleIcon.toggleClassName('txt-poof', false);
},
setup: (self) => {
setupCursorHover(self);
self.connect('pressed', () => { // mouse down