fix(ags): make animations work on notif

This commit is contained in:
matt1432 2023-09-14 14:04:10 -04:00
parent 52b81a6301
commit 669d11b91d

View file

@ -56,17 +56,14 @@ export default ({ id, summary, body, actions, urgency, time, ...icon }) => Dragg
command: () => Notifications.close(id), command: () => Notifications.close(id),
properties: [['hovered', false]], properties: [['hovered', false]],
onHover: w => { onHover: w => {
if (w._hovered) if (!w._hovered) {
return; w._hovered = true;
}
timeout(300, () => w._hovered = true);
}, },
onHoverLost: w => { onHoverLost: w => {
if (!w._hovered) if (w._hovered) {
return; w._hovered = false;
}
w._hovered = false;
Notifications.dismiss(id);
}, },
child: Box({ child: Box({