##// END OF EJS Templates
Fix the problem of calling the zoom at wheel event on the color scale
Alexandre Leroux -
r1390:ed0f1486704f
parent child
Show More
@@ -879,6 +879,11 void VisualizationGraphWidget::onMouseMove(QMouseEvent *event) noexcept
879 879
880 880 void VisualizationGraphWidget::onMouseWheel(QWheelEvent *event) noexcept
881 881 {
882 // Processes event only if the wheel occurs on axis rect
883 if (!dynamic_cast<QCPAxisRect *>(ui->widget->layoutElementAt(event->posF()))) {
884 return;
885 }
886
882 887 auto value = event->angleDelta().x() + event->angleDelta().y();
883 888 if (value != 0) {
884 889
General Comments 0
You need to be logged in to leave comments. Login now