mirror of
https://github.com/HifiExperiments/overte.git
synced 2025-08-04 05:44:50 +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;
|
||||
}
|
||||
|
||||
//do not send non primary button events to tablet
|
||||
if (event.getButton() != PointerEvent::PrimaryButton) {
|
||||
return;
|
||||
}
|
||||
|
||||
QTouchEvent::TouchPoint point;
|
||||
point.setId(event.getID());
|
||||
point.setState(touchPointState);
|
||||
|
|
Loading…
Reference in a new issue