fix(ags): make animations work on notif
This commit is contained in:
parent
52b81a6301
commit
669d11b91d
1 changed files with 6 additions and 9 deletions
|
@ -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({
|
||||||
|
|
Loading…
Reference in a new issue