on xenial help sign in
Remove wantsDrag, it's always false
commit9006459263187433d9e450aa33809d6f6faf573c authorAlbert Astals Cid <albert.astals@canonical.com> dateWed 1 Feb 2017, 14:40 (10 years ago) parent8a02dc2
1 file changed−5
plugins/Ubuntu/Gestures/TouchGestureArea.cpp−5
plugins/Ubuntu/Gestures/TouchGestureArea.cpp−5
@@ -735,7 +735,6 @@ void TouchGestureArea::resyncCachedTouchPoints()
735735 bool added = false;
736736 bool ended = false;
737737 bool moved = false;
738− bool wantsDrag = false;
739738
740739 // list of deletes
741740 QMutableHashIterator<int, GestureTouchPoint*> removeIter(m_cachedTouchPoints);
@@ -765,10 +764,6 @@ void TouchGestureArea::resyncCachedTouchPoints()
765764 }
766765 }
767766
768− if (wantsDrag && !dragging()) {
769− setDragging(true);
770− }
771−
772767 if (ended) {
773768 if (m_cachedTouchPoints.isEmpty()) {
774769 if (!dragging()) Q_EMIT clicked();