mirror of
https://github.com/edu4rdshl/gnome-shell.git
synced 2026-07-18 07:34:54 +00:00
calendar: Sync pointer after a message is removed
If a different message ends up underneath the pointer at the end of the removal animation, it won't receive an enter event until the pointer is moved, and thus its hover state will not be correct. Fix it up manually with an explicit pointer sync. https://bugzilla.gnome.org/show_bug.cgi?id=746019
This commit is contained in:
parent
d8fc58e174
commit
bb73547acf
1 changed files with 5 additions and 2 deletions
|
|
@ -1360,15 +1360,18 @@ const MessageListSection = new Lang.Class({
|
|||
|
||||
this._messages.delete(message);
|
||||
|
||||
if (animate)
|
||||
if (animate) {
|
||||
Tweener.addTween(obj.container, { scale_x: 0, scale_y: 0,
|
||||
time: MESSAGE_ANIMATION_TIME,
|
||||
transition: 'easeOutQuad',
|
||||
onComplete: function() {
|
||||
obj.container.destroy();
|
||||
global.sync_pointer();
|
||||
}});
|
||||
else
|
||||
} else {
|
||||
obj.container.destroy();
|
||||
global.sync_pointer();
|
||||
}
|
||||
},
|
||||
|
||||
clear: function() {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue