5c8f3a65f7
Since this._highlighted is always set to the currently highlighted index, there's no need to save the index to a separate variable. This obviously depends on getting the new item highlighted as a result of the item-entered event. This fixes bugs in situations where the highlighted element changes after an event that is not calling _onItemEnter, for example after scrolling or pressing a key. In those cases the _currentItemEntered variable wouldn't be updated and the old item couldn't be entered anymore without entering another one before. https://gitlab.gnome.org/GNOME/gnome-shell/merge_requests/167