mirror of
https://github.com/HifiExperiments/overte.git
synced 2025-08-09 11:29:50 +02:00
commit
8d49540f3a
1 changed files with 7 additions and 0 deletions
|
@ -421,6 +421,13 @@ void Web3DOverlay::handlePointerEventAsTouch(const PointerEvent& event) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
//do not send secondary button events to tablet
|
||||||
|
if (event.getButton() == PointerEvent::SecondaryButton ||
|
||||||
|
//do not block composed events
|
||||||
|
event.getButtons() == PointerEvent::SecondaryButton) {
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
QTouchEvent::TouchPoint point;
|
QTouchEvent::TouchPoint point;
|
||||||
point.setId(event.getID());
|
point.setId(event.getID());
|
||||||
point.setState(touchPointState);
|
point.setState(touchPointState);
|
||||||
|
|
Loading…
Reference in a new issue