]> sigrok.org Git - pulseview.git/blobdiff - pv/views/trace/viewport.cpp
Ignore touch events generated by a TrackPad.
[pulseview.git] / pv / views / trace / viewport.cpp
index 85db5250a385766d9b1cf4611e1f055449e2dc30..0c73ec494adfbc72257252c59ead85d609a6ad24 100644 (file)
@@ -116,6 +116,9 @@ bool Viewport::touch_event(QTouchEvent *event)
                pinch_zoom_active_ = false;
                return false;
        }
+       if (event->device()->type() == QTouchDevice::TouchPad) {
+               return false;
+       }
 
        const QTouchEvent::TouchPoint &touchPoint0 = touchPoints.first();
        const QTouchEvent::TouchPoint &touchPoint1 = touchPoints.last();