diff --git a/sources/diagramview.cpp b/sources/diagramview.cpp index 244b45d4f..6c2613f71 100644 --- a/sources/diagramview.cpp +++ b/sources/diagramview.cpp @@ -588,8 +588,7 @@ void DiagramView::wheelEvent(QWheelEvent *e) { QAbstractScrollArea::wheelEvent(e); } #else - if (e->buttons() != Qt::MidButton) { - if (!(e -> modifiers() & Qt::ControlModifier)) { + if (!(e -> modifiers() & Qt::ControlModifier)) { if (e -> delta() > 0){ zoomInSlowly(); } @@ -601,7 +600,6 @@ void DiagramView::wheelEvent(QWheelEvent *e) { QAbstractScrollArea::wheelEvent(e); } } - } #endif }