mirror of
https://gitlab.gnome.org/GNOME/gtk.git
synced 2024-12-29 06:51:10 +00:00
scrolledwindow: Fix a event widget/event target mixup
This commit is contained in:
parent
0f6e15cfa2
commit
dbc8d253c3
@ -839,7 +839,7 @@ scrolled_window_drag_begin_cb (GtkScrolledWindow *scrolled_window,
|
||||
gtk_scrolled_window_cancel_deceleration (scrolled_window);
|
||||
sequence = gtk_gesture_single_get_current_sequence (GTK_GESTURE_SINGLE (gesture));
|
||||
event = gtk_gesture_get_last_event (gesture, sequence);
|
||||
event_widget = gtk_get_event_widget ((GdkEvent *) event);
|
||||
event_widget = gtk_get_event_target ((GdkEvent *) event);
|
||||
|
||||
if (event_widget == priv->vscrollbar || event_widget == priv->hscrollbar ||
|
||||
(!may_hscroll (scrolled_window) && !may_vscroll (scrolled_window)))
|
||||
|
Loading…
Reference in New Issue
Block a user