viewer: only start drags when using the primary mouse button
This commit is contained in:
@@ -147,7 +147,9 @@ void ViewerDisplayWidget::mousePressEvent(QMouseEvent *event)
|
||||
|
||||
QOpenGLWidget::mousePressEvent(event);
|
||||
|
||||
emit DragStarted();
|
||||
if (event->button() == Qt::LeftButton) {
|
||||
emit DragStarted();
|
||||
}
|
||||
}
|
||||
|
||||
void ViewerDisplayWidget::mouseMoveEvent(QMouseEvent *event)
|
||||
|
||||
Reference in New Issue
Block a user