environment: Fix transition callback
This is rather embarrassing - we currently confuse the transition with the finished parameter, which means we always run the onComplete handler no matter whether the transition was interrupted or actually completed. https://gitlab.gnome.org/GNOME/gnome-shell/merge_requests/668
This commit is contained in:
parent
8b97a06961
commit
8b368d010f
@ -64,7 +64,7 @@ function _trackTransition(transition, callback) {
|
|||||||
if (_easingTransitions.has(transition))
|
if (_easingTransitions.has(transition))
|
||||||
transition.disconnect(_easingTransitions.get(transition));
|
transition.disconnect(_easingTransitions.get(transition));
|
||||||
|
|
||||||
let id = transition.connect('stopped', isFinished => {
|
let id = transition.connect('stopped', (t, isFinished) => {
|
||||||
_easingTransitions.delete(transition);
|
_easingTransitions.delete(transition);
|
||||||
callback(isFinished);
|
callback(isFinished);
|
||||||
});
|
});
|
||||||
|
Loading…
Reference in New Issue
Block a user