- p.drawRect(l, 0, r - l, height());
+ if (event->touchPointStates() & Qt::TouchPointReleased) {
+ _pinch_zoom_active = false;
+
+ if (touchPoint0.state() & Qt::TouchPointReleased) {
+ // Primary touch released
+ _mouse_down_valid = false;
+ } else {
+ // Update the mouse down fields so that continued
+ // dragging with the primary touch will work correctly
+ _mouse_down_point = touchPoint0.pos().toPoint();
+ _mouse_down_offset = _view.offset();
+ _mouse_down_valid = true;
+ }
+ }
+
+ return true;