From 5b80bfd7bffd4c20d80b7c70a7130529e9a755dd Mon Sep 17 00:00:00 2001 From: ToshikazuOhiwa Date: Mon, 30 Mar 2020 09:24:26 +0900 Subject: agl-basesystem --- .../0001-Fix-unstable-rotation-gesture.patch | 30 ++++++++++++++++++++++ .../recipes-qt/qt5/qtlocation_git.bbappend | 5 ++++ 2 files changed, 35 insertions(+) create mode 100644 meta-agl-demo/recipes-qt/qt5/qtlocation/0001-Fix-unstable-rotation-gesture.patch create mode 100644 meta-agl-demo/recipes-qt/qt5/qtlocation_git.bbappend (limited to 'meta-agl-demo/recipes-qt/qt5') diff --git a/meta-agl-demo/recipes-qt/qt5/qtlocation/0001-Fix-unstable-rotation-gesture.patch b/meta-agl-demo/recipes-qt/qt5/qtlocation/0001-Fix-unstable-rotation-gesture.patch new file mode 100644 index 00000000..164c9f0e --- /dev/null +++ b/meta-agl-demo/recipes-qt/qt5/qtlocation/0001-Fix-unstable-rotation-gesture.patch @@ -0,0 +1,30 @@ +From 85df79b094d1097108a28424d6f9b3b76b3aee62 Mon Sep 17 00:00:00 2001 +From: Tasuku Suzuki +Date: Thu, 8 Nov 2018 15:26:57 +0900 +Subject: [PATCH] Fix unstable rotation gesture + +Order of touch events are not sorted on some platform. When touch point +1 and +2 are swapped, map is rotated 180 degrees in a moment + +Change-Id: I9c308b805a6ca54519f26a9ff19217de7f947c17 +Reviewed-by: Paolo Angelelli +--- + src/location/declarativemaps/qquickgeomapgesturearea.cpp | 1 + + 1 file changed, 1 insertion(+) + +diff --git a/src/location/declarativemaps/qquickgeomapgesturearea.cpp b/src/location/declarativemaps/qquickgeomapgesturearea.cpp +index c6f4b42..576aeee 100644 +--- a/src/location/declarativemaps/qquickgeomapgesturearea.cpp ++++ b/src/location/declarativemaps/qquickgeomapgesturearea.cpp +@@ -1087,6 +1087,7 @@ void QQuickGeoMapGestureArea::update() + m_allPoints << m_touchPoints; + if (m_allPoints.isEmpty() && !m_mousePoint.isNull()) + m_allPoints << *m_mousePoint.data(); ++ std::sort(m_allPoints.begin(), m_allPoints.end(), [](const QTouchEvent::TouchPoint &tp1, const QTouchEvent::TouchPoint &tp2) { return tp1.id() < tp2.id(); }); + + touchPointStateMachine(); + +-- +2.7.4 + diff --git a/meta-agl-demo/recipes-qt/qt5/qtlocation_git.bbappend b/meta-agl-demo/recipes-qt/qt5/qtlocation_git.bbappend new file mode 100644 index 00000000..e0f3a6b2 --- /dev/null +++ b/meta-agl-demo/recipes-qt/qt5/qtlocation_git.bbappend @@ -0,0 +1,5 @@ +FILESEXTRAPATHS_prepend := "${THISDIR}/${BPN}:" + +SRC_URI += " \ + file://0001-Fix-unstable-rotation-gesture.patch \ +" -- cgit 1.2.3-korg