@interactjs/interact
Advanced tools
Comparing version 1.4.0-alpha.28 to 1.4.0-alpha.29
@@ -232,3 +232,3 @@ /** @module interact */ | ||
for (const interaction of scope.interactions.list) { | ||
if (interaction.target === interactable && interaction.interacting() && interaction._ending) { | ||
if (interaction.interactable === interactable && interaction.interacting() && interaction._ending) { | ||
interaction.stop(); | ||
@@ -243,2 +243,2 @@ } | ||
export default interact; | ||
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW50ZXJhY3QuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyJpbnRlcmFjdC50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQSx1QkFBdUI7QUFJdkIsT0FBTyxFQUFFLEtBQUssRUFBRSxNQUFNLHdCQUF3QixDQUFBO0FBQzlDLE9BQU8sS0FBSyxLQUFLLE1BQU0sbUJBQW1CLENBQUE7QUFDMUMsT0FBTyxPQUFPLE1BQU0sMkJBQTJCLENBQUE7QUFDL0MsT0FBTyxNQUFNLE1BQU0sMEJBQTBCLENBQUE7QUFzQzdDLE1BQU0sWUFBWSxHQUFRLEVBQUUsQ0FBQTtBQUM1QixNQUFNLEtBQUssR0FBRyxJQUFJLEtBQUssRUFBRSxDQUFBO0FBRXpCOzs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7R0F3Qkc7QUFDSCxNQUFNLENBQUMsTUFBTSxRQUFRLEdBQW1CLFNBQVMsUUFBUSxDQUFFLE1BQXVCLEVBQUUsT0FBYTtJQUMvRixJQUFJLFlBQVksR0FBRyxLQUFLLENBQUMsYUFBYSxDQUFDLEdBQUcsQ0FBQyxNQUFNLEVBQUUsT0FBTyxDQUFDLENBQUE7SUFFM0QsSUFBSSxDQUFDLFlBQVksRUFBRTtRQUNqQixZQUFZLEdBQUcsS0FBSyxDQUFDLGFBQWEsQ0FBQyxHQUFHLENBQUMsTUFBTSxFQUFFLE9BQU8sQ0FBQyxDQUFBO1FBQ3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nLCAoeyBpbnRlcmFjdGFibGUgfSkgPT4ge1xuICBzY29wZS5pbnRlcmFjdGFibGVzLmxpc3Quc3BsaWNlKHNjb3BlLmludGVyYWN0YWJsZXMubGlzdC5pbmRleE9mKGludGVyYWN0YWJsZSksIDEpXG5cbiAgLy8gU3RvcCByZWxhdGVkIGludGVyYWN0aW9ucyB3aGVuIGFuIEludGVyYWN0YWJsZSBpcyB1bnNldFxuICBmb3IgKGNvbnN0IGludGVyYWN0aW9uIG9mIHNjb3BlLmludGVyYWN0aW9ucy5saXN0KSB7XG4gICAgaWYgKGludGVyYWN0aW9uLmludGVyYWN0YWJsZSA9PT0gaW50ZXJhY3RhYmxlICYmIGludGVyYWN0aW9uLmludGVyYWN0aW5nKCkgJiYgaW50ZXJhY3Rpb24uX2VuZGluZykge1xuICAgICAgaW50ZXJhY3Rpb24uc3RvcCgpXG4gICAgfVxuICB9XG59KVxuXG5pbnRlcmFjdC5hZGREb2N1bWVudCAgICA9IHNjb3BlLmFkZERvY3VtZW50XG5pbnRlcmFjdC5yZW1vdmVEb2N1bWVudCA9IHNjb3BlLnJlbW92ZURvY3VtZW50XG5cbnNjb3BlLmludGVyYWN0ID0gaW50ZXJhY3RcblxuZXhwb3J0IHsgc2NvcGUgfVxuZXhwb3J0IGRlZmF1bHQgaW50ZXJhY3RcbiJdfQ== |
{ | ||
"name": "@interactjs/interact", | ||
"version": "1.4.0-alpha.28+sha.e624c4d", | ||
"version": "1.4.0-alpha.29+sha.7c21d3d", | ||
"peerDependencies": { | ||
"@interactjs/actions": "1.4.0-alpha.28+sha.e624c4d", | ||
"@interactjs/auto-scroll": "1.4.0-alpha.28+sha.e624c4d", | ||
"@interactjs/auto-start": "1.4.0-alpha.28+sha.e624c4d", | ||
"@interactjs/core": "1.4.0-alpha.28+sha.e624c4d", | ||
"@interactjs/inertia": "1.4.0-alpha.28+sha.e624c4d", | ||
"@interactjs/modifiers": "1.4.0-alpha.28+sha.e624c4d", | ||
"@interactjs/pointer-events": "1.4.0-alpha.28+sha.e624c4d", | ||
"@interactjs/reflow": "1.4.0-alpha.28+sha.e624c4d", | ||
"@interactjs/utils": "1.4.0-alpha.28+sha.e624c4d" | ||
"@interactjs/actions": "1.4.0-alpha.29+sha.7c21d3d", | ||
"@interactjs/auto-scroll": "1.4.0-alpha.29+sha.7c21d3d", | ||
"@interactjs/auto-start": "1.4.0-alpha.29+sha.7c21d3d", | ||
"@interactjs/core": "1.4.0-alpha.29+sha.7c21d3d", | ||
"@interactjs/inertia": "1.4.0-alpha.29+sha.7c21d3d", | ||
"@interactjs/modifiers": "1.4.0-alpha.29+sha.7c21d3d", | ||
"@interactjs/pointer-events": "1.4.0-alpha.29+sha.7c21d3d", | ||
"@interactjs/reflow": "1.4.0-alpha.29+sha.7c21d3d", | ||
"@interactjs/utils": "1.4.0-alpha.29+sha.7c21d3d" | ||
}, | ||
"devDependencies": { | ||
"@interactjs/_dev": "1.4.0-alpha.28+sha.e624c4d", | ||
"@interactjs/actions": "1.4.0-alpha.28+sha.e624c4d", | ||
"@interactjs/auto-scroll": "1.4.0-alpha.28+sha.e624c4d", | ||
"@interactjs/auto-start": "1.4.0-alpha.28+sha.e624c4d", | ||
"@interactjs/core": "1.4.0-alpha.28+sha.e624c4d", | ||
"@interactjs/inertia": "1.4.0-alpha.28+sha.e624c4d", | ||
"@interactjs/modifiers": "1.4.0-alpha.28+sha.e624c4d", | ||
"@interactjs/pointer-events": "1.4.0-alpha.28+sha.e624c4d", | ||
"@interactjs/reflow": "1.4.0-alpha.28+sha.e624c4d", | ||
"@interactjs/utils": "1.4.0-alpha.28+sha.e624c4d" | ||
"@interactjs/_dev": "1.4.0-alpha.29+sha.7c21d3d", | ||
"@interactjs/actions": "1.4.0-alpha.29+sha.7c21d3d", | ||
"@interactjs/auto-scroll": "1.4.0-alpha.29+sha.7c21d3d", | ||
"@interactjs/auto-start": "1.4.0-alpha.29+sha.7c21d3d", | ||
"@interactjs/core": "1.4.0-alpha.29+sha.7c21d3d", | ||
"@interactjs/inertia": "1.4.0-alpha.29+sha.7c21d3d", | ||
"@interactjs/modifiers": "1.4.0-alpha.29+sha.7c21d3d", | ||
"@interactjs/pointer-events": "1.4.0-alpha.29+sha.7c21d3d", | ||
"@interactjs/reflow": "1.4.0-alpha.29+sha.7c21d3d", | ||
"@interactjs/utils": "1.4.0-alpha.29+sha.7c21d3d" | ||
}, | ||
@@ -27,0 +27,0 @@ "publishConfig": { |
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
Manifest confusion
Supply chain riskThis package has inconsistent metadata. This could be malicious or caused by an error when publishing the package.
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
Manifest confusion
Supply chain riskThis package has inconsistent metadata. This could be malicious or caused by an error when publishing the package.
Found 1 instance in 1 package
44584
8
411