mirror of
https://thingvellir.net/git/overte
synced 2025-03-27 23:52:03 +01: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;
|
||||
}
|
||||
|
||||
//do not send non primary button events to tablet
|
||||
if (event.getButton() != PointerEvent::PrimaryButton) {
|
||||
//do not send secondary button events to tablet
|
||||
if (event.getButton() == PointerEvent::SecondaryButton ||
|
||||
//do not block composed events
|
||||
event.getButtons() == PointerEvent::SecondaryButton) {
|
||||
return;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue