on xenial help sign in
Remove wantsDrag, it's always false
9006459Albert Astals Cid
plugins/Ubuntu/Gestures/TouchGestureArea.cpp−5
@@ -735,7 +735,6 @@ void TouchGestureArea::resyncCachedTouchPoints()
735 bool added = false;
735 bool added = false;
736 bool ended = false;
736 bool ended = false;
737 bool moved = false;
737 bool moved = false;
738− bool wantsDrag = false;
739
738
740 // list of deletes
739 // list of deletes
741 QMutableHashIterator<int, GestureTouchPoint*> removeIter(m_cachedTouchPoints);
740 QMutableHashIterator<int, GestureTouchPoint*> removeIter(m_cachedTouchPoints);
@@ -765,10 +764,6 @@ void TouchGestureArea::resyncCachedTouchPoints()
765 }
764 }
766 }
765 }
767
766
768− if (wantsDrag && !dragging()) {
769− setDragging(true);
770− }
771−
772 if (ended) {
767 if (ended) {
773 if (m_cachedTouchPoints.isEmpty()) {
768 if (m_cachedTouchPoints.isEmpty()) {
774 if (!dragging()) Q_EMIT clicked();
769 if (!dragging()) Q_EMIT clicked();