c06bc74d6d
Avoid picking the direction too early. Fixes https://gitlab.gnome.org/GNOME/gnome-shell/-/issues/3755 Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/1731>