mirror of
https://github.com/Lurkki14/tuxclocker.git
synced 2025-02-25 18:55:24 -06:00
don't consume mouse move events when not dragging
This commit is contained in:
parent
988de217e2
commit
e6435b9c58
@ -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;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user