lesca-click
Advanced tools
Comparing version 1.0.5 to 1.0.6
@@ -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 @@ |
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
13542
296