New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

pointerify

Package Overview
Dependencies
Maintainers
1
Versions
18
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

pointerify - npm Package Compare versions

Comparing version 0.3.7 to 0.3.8

2

package.json
{
"name": "pointerify",
"version": "0.3.7",
"version": "0.3.8",
"main": "./dist/pointerify.js",

@@ -5,0 +5,0 @@ "scripts": {

@@ -7,2 +7,3 @@ export const POINTER_TYPE_MOUSE = Symbol('POINTER_TYPE_MOUSE');

export const POINTER_STATUS_NEW = Symbol('POINTER_STATUS_NEW');
export const POINTER_STATUS_INVALID = Symbol('POINTER_STATUS_INVALID');
export const POINTER_STATUS_EXTENDING = Symbol('POINTER_STATUS_EXTENDING');

@@ -50,2 +51,3 @@ export const POINTER_STATUS_MOVING = Symbol('POINTER_STATUS_MOVING');

POINTER_STATUS_NEW,
POINTER_STATUS_INVALID,
POINTER_STATUS_EXTENDING,

@@ -52,0 +54,0 @@ POINTER_STATUS_MOVING,

@@ -17,2 +17,3 @@ import Util from './Util';

POINTER_STATUS_NEW,
POINTER_STATUS_INVALID,
POINTER_STATUS_EXTENDING,

@@ -126,2 +127,6 @@ POINTER_STATUS_MOVING,

get isInvalid() {
return this.status === POINTER_STATUS_INVALID;
}
get isExtending() {

@@ -128,0 +133,0 @@ return this.status === POINTER_STATUS_EXTENDING;

@@ -10,2 +10,3 @@ import {

POINTER_STATUS_STOPPING,
POINTER_STATUS_INVALID,
DIRECTION_RIGHT,

@@ -429,4 +430,2 @@ DIRECTION_DOWN,

let isValidVector = true;
if (pointer.isVirtualPointer) {

@@ -459,9 +458,7 @@ const hypotenuse = Util.hypotenuse(

if (allowAxis === AXIS_X && vector < 1 || allowAxis === AXIS_Y && vector >= 1) {
// this.deletePointer(pointer);
isValidVector = false;
pointer.status = POINTER_STATUS_INVALID;
}
}
if (isValidVector) {
if (!pointer.isInvalid) {
// Vector is within range, move pointer

@@ -468,0 +465,0 @@

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is not supported yet

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