Merge pull request #10380 from vladest/rightclick-fix

Rightclick fix
This commit is contained in:
Chris Collins 2017-05-05 10:01:11 -07:00 committed by GitHub
commit 8d49540f3a

View file

@ -421,6 +421,13 @@ void Web3DOverlay::handlePointerEventAsTouch(const PointerEvent& event) {
return;
}
//do not send secondary button events to tablet
if (event.getButton() == PointerEvent::SecondaryButton ||
//do not block composed events
event.getButtons() == PointerEvent::SecondaryButton) {
return;
}
QTouchEvent::TouchPoint point;
point.setId(event.getID());
point.setState(touchPointState);