
If the menu is closed while it is being opened, we should skip the next animation in the chain. Similarly, if a menu is opened while it is being closed, we should continue the animation from the previous state instead of resetting height to 0. Closes: https://gitlab.gnome.org/GNOME/gnome-shell/-/issues/5843 Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/2481>