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),
properties: [['hovered', false]],
onHover: w => {
if (w._hovered)
return;
timeout(300, () => w._hovered = true);
if (!w._hovered) {
w._hovered = true;
}
},
onHoverLost: w => {
if (!w._hovered)
return;
if (w._hovered) {
w._hovered = false;
Notifications.dismiss(id);
}
},
child: Box({