forked from AuroraMiddleware/gtk
GtkScrolledWindow: Check proximity on both indicators on grab-end leave events
The implicit grab may be finished so the pointer lies on top of the other scrollbar, in this case one scrollbar should lose the hovering state, and the other should gain it. So we must check for proximity in both indicators.
This commit is contained in:
parent
baab1ebcc1
commit
2173b6d483
@ -1376,10 +1376,8 @@ captured_event_cb (GtkWidget *widget,
|
||||
else if (event->type == GDK_LEAVE_NOTIFY && on_scrollbar &&
|
||||
event->crossing.mode == GDK_CROSSING_UNGRAB)
|
||||
{
|
||||
if (event_widget == priv->hindicator.scrollbar)
|
||||
check_update_scrollbar_proximity (sw, &priv->hindicator, event);
|
||||
else if (event_widget == priv->vindicator.scrollbar)
|
||||
check_update_scrollbar_proximity (sw, &priv->vindicator, event);
|
||||
check_update_scrollbar_proximity (sw, &priv->vindicator, event);
|
||||
check_update_scrollbar_proximity (sw, &priv->hindicator, event);
|
||||
}
|
||||
|
||||
return GDK_EVENT_PROPAGATE;
|
||||
|
Loading…
Reference in New Issue
Block a user