Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@interactjs/interact

Package Overview
Dependencies
Maintainers
2
Versions
137
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@interactjs/interact - npm Package Compare versions

Comparing version 1.4.4 to 1.4.5

5

index.d.ts

@@ -9,7 +9,8 @@ import * as actions from '@interactjs/actions';

import interact from './interact';
export declare function init(window: Window): typeof interact;
export declare namespace init {
declare function init(window: Window): typeof interact;
declare namespace init {
var version: string;
}
export default init;
export default interact;
export { interact, actions, autoScroll, interactablePreventDefault, inertia, modifiersBase as modifiers, pointerEvents, reflow, };

4

interact.js

@@ -227,3 +227,3 @@ /** @module interact */

for (const interaction of scope.interactions.list) {
if (interaction.interactable === interactable && interaction.interacting() && interaction._ending) {
if (interaction.interactable === interactable && interaction.interacting() && !interaction._ending) {
interaction.stop();

@@ -238,2 +238,2 @@ }

export default interact;
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW50ZXJhY3QuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyJpbnRlcmFjdC50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQSx1QkFBdUI7QUFJdkIsT0FBTyxFQUFFLEtBQUssRUFBRSxNQUFNLHdCQUF3QixDQUFBO0FBQzlDLE9BQU8sS0FBSyxLQUFLLE1BQU0sbUJBQW1CLENBQUE7QUFDMUMsT0FBTyxPQUFPLE1BQU0sMkJBQTJCLENBQUE7QUFDL0MsT0FBTyxNQUFNLE1BQU0sMEJBQTBCLENBQUE7QUFnQzdDLE1BQU0sWUFBWSxHQUFRLEVBQUUsQ0FBQTtBQUM1QixNQUFNLEtBQUssR0FBRyxJQUFJLEtBQUssRUFBRSxDQUFBO0FBRXpCOzs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7R0F3Qkc7QUFDSCxNQUFNLENBQUMsTUFBTS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0aWxzLmlzLm51bWJlcihuZXdWYWx1ZSkpIHtcbiAgICBzY29wZS5pbnRlcmFjdGlvbnMucG9pbnRlck1vdmVUb2xlcmFuY2UgPSBuZXdWYWx1ZVxuXG4gICAgcmV0dXJuIGludGVyYWN0XG4gIH1cblxuICByZXR1cm4gc2NvcGUuaW50ZXJhY3Rpb25zLnBvaW50ZXJNb3ZlVG9sZXJhbmNlXG59XG5cbnNjb3BlLmludGVyYWN0YWJsZXMuc2lnbmFscy5vbigndW5zZXQnLCAoeyBpbnRlcmFjdGFibGUgfSkgPT4ge1xuICBzY29wZS5pbnRlcmFjdGFibGVzLmxpc3Quc3BsaWNlKHNjb3BlLmludGVyYWN0YWJsZXMubGlzdC5pbmRleE9mKGludGVyYWN0YWJsZSksIDEpXG5cbiAgLy8gU3RvcCByZWxhdGVkIGludGVyYWN0aW9ucyB3aGVuIGFuIEludGVyYWN0YWJsZSBpcyB1bnNldFxuICBmb3IgKGNvbnN0IGludGVyYWN0aW9uIG9mIHNjb3BlLmludGVyYWN0aW9ucy5saXN0KSB7XG4gICAgaWYgKGludGVyYWN0aW9uLmludGVyYWN0YWJsZSA9PT0gaW50ZXJhY3RhYmxlICYmIGludGVyYWN0aW9uLmludGVyYWN0aW5nKCkgJiYgaW50ZXJhY3Rpb24uX2VuZGluZykge1xuICAgICAgaW50ZXJhY3Rpb24uc3RvcCgpXG4gICAgfVxuICB9XG59KVxuXG5pbnRlcmFjdC5hZGREb2N1bWVudCA9IChkb2MsIG9wdGlvbnMpID0+IHNjb3BlLmFkZERvY3VtZW50KGRvYywgb3B0aW9ucylcbmludGVyYWN0LnJlbW92ZURvY3VtZW50ID0gKGRvYykgPT4gc2NvcGUucmVtb3ZlRG9jdW1lbnQoZG9jKVxuXG5zY29wZS5pbnRlcmFjdCA9IGludGVyYWN0XG5cbmV4cG9ydCB7IHNjb3BlIH1cbmV4cG9ydCBkZWZhdWx0IGludGVyYWN0XG4iXX0=
//# sourceMappingURL=data:application/json;base64,eyJ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ZXJhY3Rpb25zLmxpc3QpIHtcbiAgICBpZiAoaW50ZXJhY3Rpb24uaW50ZXJhY3RhYmxlID09PSBpbnRlcmFjdGFibGUgJiYgaW50ZXJhY3Rpb24uaW50ZXJhY3RpbmcoKSAmJiAhaW50ZXJhY3Rpb24uX2VuZGluZykge1xuICAgICAgaW50ZXJhY3Rpb24uc3RvcCgpXG4gICAgfVxuICB9XG59KVxuXG5pbnRlcmFjdC5hZGREb2N1bWVudCA9IChkb2MsIG9wdGlvbnMpID0+IHNjb3BlLmFkZERvY3VtZW50KGRvYywgb3B0aW9ucylcbmludGVyYWN0LnJlbW92ZURvY3VtZW50ID0gKGRvYykgPT4gc2NvcGUucmVtb3ZlRG9jdW1lbnQoZG9jKVxuXG5zY29wZS5pbnRlcmFjdCA9IGludGVyYWN0XG5cbmV4cG9ydCB7IHNjb3BlIH1cbmV4cG9ydCBkZWZhdWx0IGludGVyYWN0XG4iXX0=
{
"name": "@interactjs/interact",
"version": "1.4.4",
"version": "1.4.5",
"peerDependencies": {
"@interactjs/actions": "1.4.4",
"@interactjs/auto-scroll": "1.4.4",
"@interactjs/auto-start": "1.4.4",
"@interactjs/core": "1.4.4",
"@interactjs/dev-tools": "1.4.4",
"@interactjs/inertia": "1.4.4",
"@interactjs/modifiers": "1.4.4",
"@interactjs/pointer-events": "1.4.4",
"@interactjs/reflow": "1.4.4",
"@interactjs/utils": "1.4.4"
"@interactjs/actions": "1.4.5",
"@interactjs/auto-scroll": "1.4.5",
"@interactjs/auto-start": "1.4.5",
"@interactjs/core": "1.4.5",
"@interactjs/dev-tools": "1.4.5",
"@interactjs/inertia": "1.4.5",
"@interactjs/modifiers": "1.4.5",
"@interactjs/pointer-events": "1.4.5",
"@interactjs/reflow": "1.4.5",
"@interactjs/utils": "1.4.5"
},

@@ -16,0 +16,0 @@ "publishConfig": {

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc