Block only secondary button

This commit is contained in:
Vladyslav Stelmakhovskyi 2017-05-04 20:26:02 +02:00
parent 4cefa0379c
commit c8a9b02c7a

View file

@ -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;
}