shell: Fix resetting page selection
When the page selection happens when another page selection hasn't started yet, we need to cancel the previous animation, or only one of them might be effectively acted upon. This fixes the page from being selected if the search term is changed quickly (you'd end up at the overview page instead of staying on the search results page). Requires the clutter patch from: https://bugzilla.gnome.org/show_bug.cgi?id=676334 https://bugzilla.gnome.org/show_bug.cgi?id=676328
This commit is contained in:
parent
5f124d6008
commit
948867b6d3
1 changed files with 3 additions and 0 deletions
|
@ -356,6 +356,9 @@ _cc_notebook_select_page (CcNotebook *self,
|
|||
pos.y = 0;
|
||||
pos.x = self->priv->last_width * index;
|
||||
|
||||
if (clutter_actor_get_transition (self->priv->scroll, "scroll-to") != NULL)
|
||||
clutter_actor_remove_transition (self->priv->scroll, "scroll-to");
|
||||
|
||||
clutter_actor_save_easing_state (self->priv->scroll);
|
||||
clutter_actor_set_easing_duration (self->priv->scroll, 500);
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue