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

lesca-click

Package Overview
Dependencies
Maintainers
1
Versions
33
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

lesca-click - npm Package Compare versions

Comparing version 1.0.5 to 1.0.6

12

lib/click.js

@@ -12,9 +12,11 @@ "use strict";

var install = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : true;
var down_fn = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : function () {};
var move_fn = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : function () {};
var ex_down = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : function () {};
var ex_move = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : function () {};
var ex_up = arguments.length > 4 && arguments[4] !== undefined ? arguments[4] : function () {};
this.px = this.mx = 0;
this.py = this.my = 0;
this.dx = this.dy = 0;
this.down_fn = down_fn;
this.move_fn = move_fn;
this.ex_down = ex_down;
this.ex_move = ex_move;
this.ex_up = ex_up;
this.is_press = false;

@@ -71,2 +73,4 @@

_this.is_press = false;
_this.ex_up(e);
};

@@ -73,0 +77,0 @@

{
"name": "lesca-click",
"version": "1.0.5",
"version": "1.0.6",
"description": "replace click / touch start on SPY page",

@@ -5,0 +5,0 @@ "main": "lib/index.js",

@@ -5,8 +5,9 @@ module.exports = {

deviation: 30,
init(clickEventAlso = true, install = true, down_fn = () => {}, move_fn = () => {}) {
init(clickEventAlso = true, install = true, ex_down = () => {}, ex_move = () => {}, ex_up = () => {}) {
this.px = this.mx = 0;
this.py = this.my = 0;
this.dx = this.dy = 0;
this.down_fn = down_fn;
this.move_fn = move_fn;
this.ex_down = ex_down;
this.ex_move = ex_move;
this.ex_up = ex_up;
this.is_press = false;

@@ -48,3 +49,2 @@

}
this.move_fn(e);

@@ -58,2 +58,3 @@ };

this.is_press = false;
this.ex_up(e);
};

@@ -60,0 +61,0 @@

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