mirror of
https://github.com/HifiExperiments/overte.git
synced 2025-07-23 12:24:29 +02:00
Remove static old touch point
This commit is contained in:
parent
337a74b281
commit
d6ebd3d828
2 changed files with 6 additions and 5 deletions
|
@ -402,8 +402,6 @@ void Web3DOverlay::handlePointerEventAsTouch(const PointerEvent& event) {
|
||||||
touchType = QEvent::TouchEnd;
|
touchType = QEvent::TouchEnd;
|
||||||
}
|
}
|
||||||
|
|
||||||
static QTouchEvent::TouchPoint oldTouchPoint;
|
|
||||||
|
|
||||||
{
|
{
|
||||||
QTouchEvent::TouchPoint point;
|
QTouchEvent::TouchPoint point;
|
||||||
point.setId(event.getID());
|
point.setId(event.getID());
|
||||||
|
@ -425,9 +423,11 @@ void Web3DOverlay::handlePointerEventAsTouch(const PointerEvent& event) {
|
||||||
oldTouchPoint = point;
|
oldTouchPoint = point;
|
||||||
} else {
|
} else {
|
||||||
//const QTouchEvent::TouchPoint& oldTouchPoint = _activeTouchPoints[event.getID()];
|
//const QTouchEvent::TouchPoint& oldTouchPoint = _activeTouchPoints[event.getID()];
|
||||||
point.setStartScenePos(oldTouchPoint.startScenePos());
|
if (oldTouchPoint.id() != -1) {
|
||||||
point.setLastPos(oldTouchPoint.pos());
|
point.setStartScenePos(oldTouchPoint.startScenePos());
|
||||||
point.setLastScenePos(oldTouchPoint.scenePos());
|
point.setLastPos(oldTouchPoint.pos());
|
||||||
|
point.setLastScenePos(oldTouchPoint.scenePos());
|
||||||
|
}
|
||||||
}
|
}
|
||||||
_activeTouchPoints[event.getID()] = point;
|
_activeTouchPoints[event.getID()] = point;
|
||||||
}
|
}
|
||||||
|
|
|
@ -103,6 +103,7 @@ private:
|
||||||
uint8_t _currentMaxFPS { 0 };
|
uint8_t _currentMaxFPS { 0 };
|
||||||
|
|
||||||
bool _mayNeedResize { false };
|
bool _mayNeedResize { false };
|
||||||
|
QTouchEvent::TouchPoint oldTouchPoint;
|
||||||
};
|
};
|
||||||
|
|
||||||
#endif // hifi_Web3DOverlay_h
|
#endif // hifi_Web3DOverlay_h
|
||||||
|
|
Loading…
Reference in a new issue