Make overlay scrollbar fading interruptible

When the pointer starts hovering the scrollbar after it already
started fading out, interrupt the fade and keep the scrollbar
around.
This commit is contained in:
Matthias Clasen 2014-11-14 11:49:33 -05:00
parent 95b075b8eb
commit a7173d097f

View File

@ -3519,6 +3519,7 @@ indicator_enter_notify (GtkWidget *scrollbar,
gtk_style_context_add_class (context, "hovering");
gtk_widget_queue_resize (scrollbar);
indicator->over = TRUE;
indicator_start_fade (indicator, 1.0);
return G_SOURCE_CONTINUE;
}