mjolnir.js
Advanced tools
Comparing version 2.5.1 to 2.5.2
# Change Log | ||
#### [2.5.2] - Jun 24, 2021 | ||
- Fix duplicate right click events when using multiple managers (#86) | ||
#### [2.5.1] - May 10, 2021 | ||
@@ -4,0 +8,0 @@ |
@@ -33,3 +33,3 @@ "use strict"; | ||
if (ev.button > 0) { | ||
if (ev.button > 0 && ev.type === 'pointerdown') { | ||
if (!some(store, function (e) { | ||
@@ -36,0 +36,0 @@ return e.pointerId === ev.pointerId; |
@@ -26,3 +26,3 @@ const INPUT_START = 1; | ||
if (ev.button > 0) { | ||
if (ev.button > 0 && ev.type === 'pointerdown') { | ||
if (!some(store, e => e.pointerId === ev.pointerId)) { | ||
@@ -29,0 +29,0 @@ store.push(ev); |
@@ -26,3 +26,3 @@ var INPUT_START = 1; | ||
if (ev.button > 0) { | ||
if (ev.button > 0 && ev.type === 'pointerdown') { | ||
if (!some(store, function (e) { | ||
@@ -29,0 +29,0 @@ return e.pointerId === ev.pointerId; |
{ | ||
"name": "mjolnir.js", | ||
"description": "An Event Manager", | ||
"version": "2.5.1", | ||
"version": "2.5.2", | ||
"keywords": [ | ||
@@ -6,0 +6,0 @@ "hammerjs", |
@@ -40,3 +40,3 @@ /** | ||
// Allow non-left mouse buttons through | ||
if (ev.button > 0) { | ||
if (ev.button > 0 && ev.type === 'pointerdown') { | ||
if (!some(store, e => e.pointerId === ev.pointerId)) { | ||
@@ -43,0 +43,0 @@ store.push(ev); |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
395431