mirror of
https://github.com/overte-org/overte.git
synced 2025-04-08 07:12:40 +02:00
Don't send "move" events for non-move events
This commit is contained in:
parent
b03fd44240
commit
25ac82f162
1 changed files with 4 additions and 2 deletions
|
@ -371,11 +371,12 @@ void Web3DOverlay::handlePointerEventAsTouch(const PointerEvent& event) {
|
|||
mouseType = QEvent::MouseButtonRelease;
|
||||
break;
|
||||
case PointerEvent::Move:
|
||||
default:
|
||||
touchType = QEvent::TouchUpdate;
|
||||
touchPointState = Qt::TouchPointMoved;
|
||||
mouseType = QEvent::MouseMove;
|
||||
break;
|
||||
default:
|
||||
return;
|
||||
}
|
||||
|
||||
QTouchEvent::TouchPoint point;
|
||||
|
@ -445,9 +446,10 @@ void Web3DOverlay::handlePointerEventAsMouse(const PointerEvent& event) {
|
|||
type = QEvent::MouseButtonRelease;
|
||||
break;
|
||||
case PointerEvent::Move:
|
||||
default:
|
||||
type = QEvent::MouseMove;
|
||||
break;
|
||||
default:
|
||||
return;
|
||||
}
|
||||
|
||||
QMouseEvent* mouseEvent = new QMouseEvent(type, windowPoint, windowPoint, windowPoint, button, buttons, Qt::NoModifier);
|
||||
|
|
Loading…
Reference in a new issue