don't consume mouse move events when not dragging

This commit is contained in:
Jussi Kuokkanen 2023-08-17 22:44:12 +03:00
parent 988de217e2
commit e6435b9c58

View File

@ -168,11 +168,13 @@ void DragChartView::mouseMoveEvent(QMouseEvent *event) {
}
if (!(event->buttons() & Qt::LeftButton)) {
QChartView::mouseMoveEvent(event);
return;
}
if ((event->pos() - m_dragStartPosition).manhattanLength() <
QApplication::startDragDistance() ||
!m_dragCanStart) {
QChartView::mouseMoveEvent(event);
return;
}