@interactjs/utils
Advanced tools
Comparing version 1.8.0-rc.3 to 1.8.0
@@ -32,3 +32,3 @@ function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; } | ||
if (!contains(target.events[type], listener)) { | ||
if (element.removeEventListener && !contains(target.events[type], listener)) { | ||
element.addEventListener(type, listener, events.supportsOptions ? options : !!options.capture); | ||
@@ -69,3 +69,3 @@ target.events[type].push(listener); | ||
for (let i = 0; i < len; i++) { | ||
if (target.events[type][i] === listener) { | ||
if (element.removeEventListener && target.events[type][i] === listener) { | ||
element.removeEventListener(type, listener, events.supportsOptions ? options : !!options.capture); | ||
@@ -72,0 +72,0 @@ target.events[type].splice(i, 1); |
{ | ||
"name": "@interactjs/utils", | ||
"version": "1.8.0-rc.3", | ||
"version": "1.8.0", | ||
"license": "MIT", | ||
"devDependencies": { | ||
"@interactjs/_dev": "1.8.0-rc.3" | ||
"@interactjs/_dev": "1.8.0" | ||
}, | ||
"publishConfig": { | ||
"access": "public" | ||
} | ||
}, | ||
"gitHead": "96b50f75" | ||
} |
@@ -78,2 +78,16 @@ import pointerExtend from './pointerExtend'; | ||
readonly buttons: any; | ||
} & MouseEvent & import("@interactjs/pointer-events/PointerEvent").default<any>) | ({ | ||
coords: MockCoords; | ||
readonly page: any; | ||
readonly client: any; | ||
readonly timeStamp: any; | ||
readonly pageX: any; | ||
readonly pageY: any; | ||
readonly clientX: any; | ||
readonly clientY: any; | ||
readonly pointerId: any; | ||
readonly target: any; | ||
readonly type: any; | ||
readonly pointerType: any; | ||
readonly buttons: any; | ||
} & MouseEvent & import("@interactjs/core/InteractEvent").InteractEvent<any, any>) | ({ | ||
@@ -135,2 +149,16 @@ coords: MockCoords; | ||
readonly buttons: any; | ||
} & Touch & import("@interactjs/pointer-events/PointerEvent").default<any>) | ({ | ||
coords: MockCoords; | ||
readonly page: any; | ||
readonly client: any; | ||
readonly timeStamp: any; | ||
readonly pageX: any; | ||
readonly pageY: any; | ||
readonly clientX: any; | ||
readonly clientY: any; | ||
readonly pointerId: any; | ||
readonly target: any; | ||
readonly type: any; | ||
readonly pointerType: any; | ||
readonly buttons: any; | ||
} & Touch & import("@interactjs/core/InteractEvent").InteractEvent<any, any>) | ({ | ||
@@ -192,2 +220,16 @@ coords: MockCoords; | ||
readonly buttons: any; | ||
} & PointerEvent & import("@interactjs/pointer-events/PointerEvent").default<any>) | ({ | ||
coords: MockCoords; | ||
readonly page: any; | ||
readonly client: any; | ||
readonly timeStamp: any; | ||
readonly pageX: any; | ||
readonly pageY: any; | ||
readonly clientX: any; | ||
readonly clientY: any; | ||
readonly pointerId: any; | ||
readonly target: any; | ||
readonly type: any; | ||
readonly pointerType: any; | ||
readonly buttons: any; | ||
} & PointerEvent & import("@interactjs/core/InteractEvent").InteractEvent<any, any>) | ({ | ||
@@ -221,2 +263,72 @@ coords: MockCoords; | ||
readonly buttons: any; | ||
} & import("@interactjs/pointer-events/PointerEvent").default<any> & MouseEvent) | ({ | ||
coords: MockCoords; | ||
readonly page: any; | ||
readonly client: any; | ||
readonly timeStamp: any; | ||
readonly pageX: any; | ||
readonly pageY: any; | ||
readonly clientX: any; | ||
readonly clientY: any; | ||
readonly pointerId: any; | ||
readonly target: any; | ||
readonly type: any; | ||
readonly pointerType: any; | ||
readonly buttons: any; | ||
} & import("@interactjs/pointer-events/PointerEvent").default<any> & PointerEvent) | ({ | ||
coords: MockCoords; | ||
readonly page: any; | ||
readonly client: any; | ||
readonly timeStamp: any; | ||
readonly pageX: any; | ||
readonly pageY: any; | ||
readonly clientX: any; | ||
readonly clientY: any; | ||
readonly pointerId: any; | ||
readonly target: any; | ||
readonly type: any; | ||
readonly pointerType: any; | ||
readonly buttons: any; | ||
} & import("@interactjs/pointer-events/PointerEvent").default<any>) | ({ | ||
coords: MockCoords; | ||
readonly page: any; | ||
readonly client: any; | ||
readonly timeStamp: any; | ||
readonly pageX: any; | ||
readonly pageY: any; | ||
readonly clientX: any; | ||
readonly clientY: any; | ||
readonly pointerId: any; | ||
readonly target: any; | ||
readonly type: any; | ||
readonly pointerType: any; | ||
readonly buttons: any; | ||
} & import("@interactjs/pointer-events/PointerEvent").default<any> & import("@interactjs/core/InteractEvent").InteractEvent<any, any>) | ({ | ||
coords: MockCoords; | ||
readonly page: any; | ||
readonly client: any; | ||
readonly timeStamp: any; | ||
readonly pageX: any; | ||
readonly pageY: any; | ||
readonly clientX: any; | ||
readonly clientY: any; | ||
readonly pointerId: any; | ||
readonly target: any; | ||
readonly type: any; | ||
readonly pointerType: any; | ||
readonly buttons: any; | ||
} & import("@interactjs/pointer-events/PointerEvent").default<any> & TouchEvent) | ({ | ||
coords: MockCoords; | ||
readonly page: any; | ||
readonly client: any; | ||
readonly timeStamp: any; | ||
readonly pageX: any; | ||
readonly pageY: any; | ||
readonly clientX: any; | ||
readonly clientY: any; | ||
readonly pointerId: any; | ||
readonly target: any; | ||
readonly type: any; | ||
readonly pointerType: any; | ||
readonly buttons: any; | ||
} & import("@interactjs/core/InteractEvent").InteractEvent<any, any> & MouseEvent) | ({ | ||
@@ -250,2 +362,16 @@ coords: MockCoords; | ||
readonly buttons: any; | ||
} & import("@interactjs/core/InteractEvent").InteractEvent<any, any> & import("@interactjs/pointer-events/PointerEvent").default<any>) | ({ | ||
coords: MockCoords; | ||
readonly page: any; | ||
readonly client: any; | ||
readonly timeStamp: any; | ||
readonly pageX: any; | ||
readonly pageY: any; | ||
readonly clientX: any; | ||
readonly clientY: any; | ||
readonly pointerId: any; | ||
readonly target: any; | ||
readonly type: any; | ||
readonly pointerType: any; | ||
readonly buttons: any; | ||
} & import("@interactjs/core/InteractEvent").InteractEvent<any, any>) | ({ | ||
@@ -252,0 +378,0 @@ coords: MockCoords; |
Sorry, the diff of this file is not supported yet
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
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
No v1
QualityPackage is not semver >=1. This means it is not stable and does not support ^ ranges.
Found 1 instance in 1 package
146543
1659
1
0