don't fire taps for right clicks

This commit is contained in:
Gavin McDonald
2018-08-04 20:45:46 -04:00
parent 56a769588d
commit 965d3ac7de

View File

@@ -139,7 +139,10 @@ export default class OnTap {
}); });
if (!this.state.moving) { if (!this.state.moving) {
if (this.settings.desktopPress && event.duration >= this.settings.pressThreshold) { const rightClick = event.which && event.which !== 1;
const press = this.settings.desktopPress && event.duration >= this.settings.pressThreshold;
if (rightClick || press) {
this.settings.press(event); this.settings.press(event);
} }
else { else {