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

@interactjs/pointer-events

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/pointer-events - npm Package Compare versions

Comparing version 1.4.0-rc.3 to 1.4.0-rc.4

8

base.d.ts

@@ -60,7 +60,7 @@ import { PerActionDefaults } from '@interactjs/core/defaultOptions';

event: Interact.PointerEventType;
eventTarget: EventTarget;
eventTarget: Interact.EventTarget;
targets?: EventTargetList;
pointerEvent?: PointerEvent<T>;
type: T;
}): PointerEvent<string>;
}, scope: Interact.Scope): PointerEvent<any>;
declare function collectEventTargets<T extends string>({ interaction, pointer, event, eventTarget, type }: {

@@ -70,3 +70,3 @@ interaction: Interaction;

event: Interact.PointerEventType;
eventTarget: EventTarget;
eventTarget: Interact.EventTarget;
type: T;

@@ -81,3 +81,3 @@ }): {

declare function install(scope: Scope): void;
declare function createSignalListener(type: string): ({ interaction, pointer, event, eventTarget }: any) => void;
declare function createSignalListener(type: string, scope: any): ({ interaction, pointer, event, eventTarget }: any) => void;
export default pointerEvents;

@@ -31,5 +31,5 @@ import * as utils from '@interactjs/utils';

};
function fire(arg) {
function fire(arg, scope) {
const { interaction, pointer, event, eventTarget, type = arg.pointerEvent.type, targets = collectEventTargets(arg), } = arg;
const { pointerEvent = new PointerEvent(type, pointer, event, eventTarget, interaction), } = arg;
const { pointerEvent = new PointerEvent(type, pointer, event, eventTarget, interaction, scope.now()), } = arg;
const signalArg = {

@@ -72,3 +72,3 @@ interaction,

type: 'doubletap',
})
}, scope)
: pointerEvent;

@@ -135,3 +135,3 @@ interaction.prevTap = prevTap;

type: 'move',
});
}, scope);
}

@@ -174,3 +174,3 @@ });

type: 'hold',
});
}, scope);
}, minDuration);

@@ -186,16 +186,16 @@ });

for (let i = 0; i < simpleSignals.length; i++) {
interactions.signals.on(simpleSignals[i], createSignalListener(simpleEvents[i]));
interactions.signals.on(simpleSignals[i], createSignalListener(simpleEvents[i], scope));
}
interactions.signals.on('up', ({ interaction, pointer, event, eventTarget }) => {
if (!interaction.pointerWasMoved) {
fire({ interaction, eventTarget, pointer, event, type: 'tap' });
fire({ interaction, eventTarget, pointer, event, type: 'tap' }, scope);
}
});
}
function createSignalListener(type) {
function createSignalListener(type, scope) {
return function ({ interaction, pointer, event, eventTarget }) {
fire({ interaction, eventTarget, pointer, event, type });
fire({ interaction, eventTarget, pointer, event, type }, scope);
};
}
export default pointerEvents;
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiYmFzZS5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbImJhc2UudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBSUEsT0FBTyxLQUFLLEtBQUssTUFBTSxtQkFBbUIsQ0FBQTtBQUMxQyxPQUFPLFlBQVksTUFBTSxnQkFBZ0IsQ0FBQTtBQTRDekMsTUFBTSxPQUFPLEdBQVMsSUFBSSxLQUFLLENBQUMsT0FBTyxFQUFFLENBQUE7QUFDekMsTUFBTSxhQUFhLEdBQUcsQ0FBRSxNQUFNLEVBQUUsSUFBSSxFQUFFLFFBQVEsQ0FBRSxDQUFBO0FBQ2hELE1BQU0sWUFBWSxHQUFJLENBQUUsTUFBTSxFQUFFLElBQUksRUFBRSxRQUFRLENBQUUsQ0FBQTtBQUVoRCxNQUFNLFFBQVEsR0FBd0I7SUFDcEMsWUFBWSxFQUFFLEdBQUc7SUFDakIsVUFBVSxFQUFJLElBQUk7SUFDbEIsU0FBUyxFQUFLLElBQUk7SUFDbEIsTUFBTSxFQUFRLEVBQUUsQ0FBQyxFQUFFLENBQUMsRUFBRSxDQUFDLEVBQUUsQ0FBQyxFQUFFO0NBQzdCLENBQUE7QUFFRCxNQUFNLGFBQWEsR0FBRztJQUNwQixFQUFFLEVBQUUscUJBQXFCO0lBQ3pCLE9BQU87SUFDUCxPQUFP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HtcbiAgICBmaXJlKHsgaW50ZXJhY3Rpb24sIGV2ZW50VGFyZ2V0LCBwb2ludGVyLCBldmVudCwgdHlwZSB9LCBzY29wZSlcbiAgfVxufVxuXG5leHBvcnQgZGVmYXVsdCBwb2ludGVyRXZlbnRzXG4iXX0=

@@ -6,3 +6,3 @@ import basePlugin from './base';

pointerEvents.signals.on('new', onNew);
pointerEvents.signals.on('fired', (arg) => onFired(arg, pointerEvents));
pointerEvents.signals.on('fired', (arg) => onFired(arg, scope));
for (const signal of ['move', 'up', 'cancel', 'endall']) {

@@ -21,3 +21,3 @@ interactions.signals.on(signal, endHoldRepeat);

}
function onFired({ interaction, pointerEvent, eventTarget, targets }, pointerEvents) {
function onFired({ interaction, pointerEvent, eventTarget, targets }, scope) {
if (pointerEvent.type !== 'hold' || !targets.length) {

@@ -34,3 +34,3 @@ return;

interaction.holdIntervalHandle = setTimeout(() => {
pointerEvents.fire({
scope.pointerEvents.fire({
interaction,

@@ -41,3 +41,3 @@ eventTarget,

event: pointerEvent,
});
}, scope);
}, interval);

@@ -57,2 +57,2 @@ }

};
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaG9sZFJlcGVhdC5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbImhvbGRSZXBlYXQudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUEsT0FBTyxVQUFVLE1BQU0sUUFBUSxDQUFBO0FBYy9CLFNBQVMsT0FBTyxDQUFFLEtBQXFCO0lBQ3JDLE1BQU0sRUFDSixhQUFhLEVBQ2IsWUFBWSxHQUNiLEdBQUcsS0FBSyxDQUFBO0lBRVQsS0FBSyxDQUFDLFNBQVMsQ0FBQyxVQUFVLENBQUMsQ0FBQTtJQUUzQixhQUFhLENBQUMsT0FBTyxDQUFDLEVBQUUsQ0FBQyxLQUFLLEVBQUUsS0FBSyxDQUFDLENBQUE7SUFDdEMsYUFBYSxDQUFDLE9BQU8sQ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ZXJhY3Rpb24uaG9sZEludGVydmFsSGFuZGxlID0gc2V0VGltZW91dCgoKSA9PiB7XG4gICAgc2NvcGUucG9pbnRlckV2ZW50cy5maXJlKHtcbiAgICAgIGludGVyYWN0aW9uLFxuICAgICAgZXZlbnRUYXJnZXQsXG4gICAgICB0eXBlOiAnaG9sZCcsXG4gICAgICBwb2ludGVyOiBwb2ludGVyRXZlbnQsXG4gICAgICBldmVudDogcG9pbnRlckV2ZW50LFxuICAgIH0sIHNjb3BlKVxuICB9LCBpbnRlcnZhbClcbn1cblxuZnVuY3Rpb24gZW5kSG9sZFJlcGVhdCAoeyBpbnRlcmFjdGlvbiB9KSB7XG4gIC8vIHNldCB0aGUgaW50ZXJhY3Rpb24ncyBob2xkU3RvcFRpbWUgcHJvcGVydHlcbiAgLy8gdG8gc3RvcCBmdXJ0aGVyIGhvbGRSZXBlYXQgZXZlbnRzXG4gIGlmIChpbnRlcmFjdGlvbi5ob2xkSW50ZXJ2YWxIYW5kbGUpIHtcbiAgICBjbGVhckludGVydmFsKGludGVyYWN0aW9uLmhvbGRJbnRlcnZhbEhhbmRsZSlcbiAgICBpbnRlcmFjdGlvbi5ob2xkSW50ZXJ2YWxIYW5kbGUgPSBudWxsXG4gIH1cbn1cblxuZXhwb3J0IGRlZmF1bHQge1xuICBpZDogJ3BvaW50ZXItZXZlbnRzL2hvbGRSZXBlYXQnLFxuICBpbnN0YWxsLFxufSBhcyBJbnRlcmFjdC5QbHVnaW5cbiJdfQ==
{
"name": "@interactjs/pointer-events",
"version": "1.4.0-rc.3",
"version": "1.4.0-rc.4",
"peerDependencies": {

@@ -9,5 +9,5 @@ "@interactjs/core": "1.4.0-rc.2",

"devDependencies": {
"@interactjs/_dev": "1.4.0-rc.3",
"@interactjs/core": "1.4.0-rc.3",
"@interactjs/utils": "1.4.0-rc.3"
"@interactjs/_dev": "1.4.0-rc.4",
"@interactjs/core": "1.4.0-rc.4",
"@interactjs/utils": "1.4.0-rc.4"
},

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

@@ -22,3 +22,3 @@ import Interaction from '@interactjs/core/Interaction';

/** */
constructor(type: any, pointer: any, event: any, eventTarget: any, interaction: any);
constructor(type: T, pointer: Interact.PointerType | PointerEvent<any>, event: Interact.PointerEventType, eventTarget: Interact.EventTarget, interaction: Interact.Interaction, timeStamp: number);
subtractOrigin({ x: originX, y: originY }: {

@@ -25,0 +25,0 @@ x: any;

@@ -5,3 +5,3 @@ import pointerUtils from '@interactjs/utils/pointerUtils';

/** */
constructor(type, pointer, event, eventTarget, interaction) {
constructor(type, pointer, event, eventTarget, interaction, timeStamp) {
this.propagationStopped = false;

@@ -14,3 +14,3 @@ this.immediatePropagationStopped = false;

this.interaction = interaction;
this.timeStamp = new Date().getTime();
this.timeStamp = timeStamp;
this.originalEvent = event;

@@ -68,2 +68,2 @@ this.type = type;

}
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiUG9pbnRlckV2ZW50LmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiUG9pbnRlckV2ZW50LnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUNBLE9BQU8sWUFBWSxNQUFNLGdDQUFnQyxDQUFBO0FBRXpELE1BQU07QUFDTixNQUFNLENBQUMsT0FBTyxPQUFPLFlBQVk7SUFtQi9CLE1BQU07SUFDTixZQUFhLElBQUksRUFBRSxPQUFPLEVBQUUsS0FBSyxFQUFFLFdBQVcsRUFBRSxXQUFXO1FBSjNELHVCQUFrQixHQUFHLEtBQUssQ0FBQTtRQUMxQixnQ0FBMkIsR0FBRyxLQUFLLENBQUE7UUFJakMsWUFBWSxDQUFDLGFBQWEsQ0FBQyxJQUFJLEVBQUUsS0FBSyxDQUFDLENBQUE7UUFFdkMsSUFBSSxLQUFLLEtBQUssT0FBTyxFQUFFO1lBQ3JCLFlBQVksQ0FBQyxhQUFhLENBQUMsSUFBSSxFQUFFLE9BQU8sQ0FBQyxDQUFBO1NB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25TdG9wcGVkID0gdGhpcy5wcm9wYWdhdGlvblN0b3BwZWQgPSB0cnVlXG4gIH1cbn1cbiJdfQ==
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