mirror of
https://github.com/HifiExperiments/overte.git
synced 2025-08-09 05:37:26 +02:00
Block only secondary button
This commit is contained in:
parent
4cefa0379c
commit
c8a9b02c7a
1 changed files with 4 additions and 2 deletions
|
@ -421,8 +421,10 @@ void Web3DOverlay::handlePointerEventAsTouch(const PointerEvent& event) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
//do not send non primary button events to tablet
|
//do not send secondary button events to tablet
|
||||||
if (event.getButton() != PointerEvent::PrimaryButton) {
|
if (event.getButton() == PointerEvent::SecondaryButton ||
|
||||||
|
//do not block composed events
|
||||||
|
event.getButtons() == PointerEvent::SecondaryButton) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue