reshow-hooks
Advanced tools
Comparing version 0.17.31 to 0.17.32
@@ -33,3 +33,3 @@ "use strict"; | ||
var start = function start( /**@type React.MouseEvent*/e) { | ||
e === null || e === void 0 ? void 0 : e.persist(); | ||
var currentTarget = e === null || e === void 0 ? void 0 : e.currentTarget; | ||
var _lastPayload$current = lastPayload.current, | ||
@@ -39,12 +39,12 @@ _lastPayload$current$ = _lastPayload$current.threshold, | ||
onStart = _lastPayload$current.onStart; | ||
(0, _callFunc["default"])(onStart, [e]); | ||
(0, _callFunc["default"])(onStart, [e, currentTarget]); | ||
timerRun(function () { | ||
(0, _callFunc["default"])(callback, [e]); | ||
(0, _callFunc["default"])(callback, [e, currentTarget]); | ||
}, threshold); | ||
}; | ||
var cancel = function cancel( /**@type React.MouseEvent*/e) { | ||
e === null || e === void 0 ? void 0 : e.persist(); | ||
var currentTarget = e === null || e === void 0 ? void 0 : e.currentTarget; | ||
timerStop(); | ||
var onCancel = lastPayload.current.onCancel; | ||
(0, _callFunc["default"])(onCancel, [e]); | ||
(0, _callFunc["default"])(onCancel, [e, currentTarget]); | ||
}; | ||
@@ -51,0 +51,0 @@ var mouseHandlers = { |
{ | ||
"version": "0.17.31", | ||
"version": "0.17.32", | ||
"name": "reshow-hooks", | ||
@@ -4,0 +4,0 @@ "repository": { |
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
32628