[gtk+/touchscreens: 40/49] gtk, scrolledwindow: capture motions until the kinetic scrolling cancellation
- From: Carlos Garnacho <carlosg src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk+/touchscreens: 40/49] gtk, scrolledwindow: capture motions until the kinetic scrolling cancellation
- Date: Mon, 5 Dec 2011 01:18:19 +0000 (UTC)
commit 2b64e88f6a027c17fc0265978403c166a3d113b3
Author: Carlos Garnacho <carlosg gnome org>
Date: Sat Nov 26 20:05:03 2011 +0100
gtk,scrolledwindow: capture motions until the kinetic scrolling cancellation
If the widget which events are captured listens to motion hints, there
are situations where neither the scrolled window or the child widget
request more motions.
gtk/gtkscrolledwindow.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/gtk/gtkscrolledwindow.c b/gtk/gtkscrolledwindow.c
index 06be99f..64f2adf 100644
--- a/gtk/gtkscrolledwindow.c
+++ b/gtk/gtkscrolledwindow.c
@@ -2659,7 +2659,7 @@ gtk_scrolled_window_motion_notify_event (GtkWidget *widget,
priv->in_drag = TRUE;
}
else
- return GTK_CAPTURED_EVENT_NONE;
+ return GTK_CAPTURED_EVENT_HANDLED;
}
priv->last_button_event_x_root = -TOUCH_BYPASS_CAPTURED_THRESHOLD;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]