mirror of
https://github.com/HifiExperiments/overte.git
synced 2025-08-09 08:56:25 +02:00
Do not send non primary button events to Tablet window
This commit is contained in:
parent
ef628eaec6
commit
99ed2556f2
1 changed files with 5 additions and 0 deletions
|
@ -421,6 +421,11 @@ void Web3DOverlay::handlePointerEventAsTouch(const PointerEvent& event) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
//do not send non primary button events to tablet
|
||||||
|
if (event.getButton() != PointerEvent::PrimaryButton) {
|
||||||
|
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