[gnome-text-editor] source-view: remove discrete events from scroll controller
- From: Christian Hergert <chergert src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-text-editor] source-view: remove discrete events from scroll controller
- Date: Thu, 21 Jul 2022 05:17:13 +0000 (UTC)
commit 98de9f4f949299fa53b2e3c81c7eb1816324319d
Author: Christian Hergert <chergert redhat com>
Date: Wed Jul 20 22:17:00 2022 -0700
source-view: remove discrete events from scroll controller
This fixes an issue where we can break horizontal two-finger scroll
gestures.
Fixes #441
src/editor-source-view.c | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
---
diff --git a/src/editor-source-view.c b/src/editor-source-view.c
index d7f6e40..c3b9326 100644
--- a/src/editor-source-view.c
+++ b/src/editor-source-view.c
@@ -925,7 +925,8 @@ editor_source_view_init (EditorSourceView *self)
self);
gtk_widget_add_controller (GTK_WIDGET (self), controller);
- controller = gtk_event_controller_scroll_new (GTK_EVENT_CONTROLLER_SCROLL_VERTICAL |
GTK_EVENT_CONTROLLER_SCROLL_DISCRETE);
+ controller = gtk_event_controller_scroll_new (GTK_EVENT_CONTROLLER_SCROLL_VERTICAL);
+ gtk_event_controller_set_propagation_phase (controller, GTK_PHASE_CAPTURE);
g_signal_connect (controller,
"scroll",
G_CALLBACK (on_scroll_scrolled_cb),
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]