From 6e8fdb129b7ffa19eacb3ef5d03989e52a6a0169 Mon Sep 17 00:00:00 2001
From: Andras Becsi <andras.becsi@theqtcompany.com>
Date: Fri, 20 Mar 2015 15:07:18 +0100
Subject: [PATCH] Fix gesture recognition
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit

Disable new gestures swipe and two-finger tap which seem to
interfere with scroll and single finger tap in our current
gesture provider code.

Change-Id: Ib6d3590cafcc8bbd6ff2399d94a1ee9334070a5a
Reviewed-by: Michael Brüning <michael.bruning@theqtcompany.com>
---
 src/core/render_widget_host_view_qt.cpp | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/src/core/render_widget_host_view_qt.cpp b/src/core/render_widget_host_view_qt.cpp
index 78fcce2d5..0f9286252 100644
--- a/src/core/render_widget_host_view_qt.cpp
+++ b/src/core/render_widget_host_view_qt.cpp
@@ -145,6 +145,8 @@ static inline ui::GestureProvider::Config QtGestureProviderConfig() {
     ui::GestureProvider::Config config = ui::DefaultGestureProviderConfig();
     // Causes an assert in CreateWebGestureEventFromGestureEventData and we don't need them in Qt.
     config.gesture_begin_end_types_enabled = false;
+    config.gesture_detector_config.swipe_enabled = false;
+    config.gesture_detector_config.two_finger_tap_enabled = false;
     return config;
 }
 
-- 
GitLab