don't fire taps for right clicks
This commit is contained in:
@@ -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 {
|
||||||
|
|||||||
Reference in New Issue
Block a user