g6-hammerjs
Advanced tools
Comparing version 0.0.9 to 0.0.10
@@ -324,3 +324,3 @@ "use strict"; | ||
data.preventDefault = function () { | ||
data.srcEvent.preventDefault(); | ||
data.srcEvent?.preventDefault(); | ||
}; | ||
@@ -327,0 +327,0 @@ } |
@@ -5,3 +5,3 @@ { | ||
"description": "A javascript library for multi-touch gestures", | ||
"version": "0.0.9", | ||
"version": "0.0.10", | ||
"main": "lib/index.js", | ||
@@ -8,0 +8,0 @@ "unpkg": "dist/hammer.min.js", |
@@ -114,3 +114,6 @@ import assign from './utils/assign'; | ||
// or when we're in a new session | ||
if (!curRecognizer || (curRecognizer && curRecognizer.state & STATE_RECOGNIZED)) { | ||
if ( | ||
!curRecognizer || | ||
(curRecognizer && curRecognizer.state & STATE_RECOGNIZED) | ||
) { | ||
curRecognizer = session.curRecognizer = null; | ||
@@ -143,3 +146,6 @@ } | ||
// current active recognizer. but only if we don't already have an active recognizer | ||
if (!curRecognizer && recognizer.state & (STATE_BEGAN | STATE_CHANGED | STATE_ENDED)) { | ||
if ( | ||
!curRecognizer && | ||
recognizer.state & (STATE_BEGAN | STATE_CHANGED | STATE_ENDED) | ||
) { | ||
curRecognizer = session.curRecognizer = recognizer; | ||
@@ -261,3 +267,4 @@ } | ||
} else { | ||
handlers[event] && handlers[event].splice(inArray(handlers[event], handler), 1); | ||
handlers[event] && | ||
handlers[event].splice(inArray(handlers[event], handler), 1); | ||
} | ||
@@ -296,3 +303,3 @@ }); | ||
data.preventDefault = function () { | ||
data.srcEvent.preventDefault(); | ||
data.srcEvent?.preventDefault(); | ||
}; | ||
@@ -299,0 +306,0 @@ } |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
254088
6815