@clayui/shared
Advanced tools
Comparing version 3.107.0 to 3.109.0
@@ -46,2 +46,8 @@ "use strict"; | ||
} | ||
}; | ||
var onBlur = function onBlur(event) { | ||
if (state.onInteract && event.view === undefined) { | ||
state.onInteract(event); | ||
} | ||
}; // Use pointer events if available. Otherwise, fall back to mouse and touch events. | ||
@@ -60,5 +66,7 @@ | ||
document.addEventListener('pointerup', onPointerUp, true); | ||
window.addEventListener('blur', onBlur, true); | ||
return function () { | ||
document.removeEventListener('pointerdown', onPointerDown, true); | ||
document.removeEventListener('pointerup', onPointerUp, true); | ||
window.removeEventListener('blur', onBlur, true); | ||
}; | ||
@@ -88,2 +96,3 @@ } else { | ||
document.addEventListener('touchend', onTouchEnd, true); | ||
window.addEventListener('blur', onBlur, true); | ||
return function () { | ||
@@ -94,2 +103,3 @@ document.removeEventListener('mousedown', onPointerDown, true); | ||
document.removeEventListener('touchend', onTouchEnd, true); | ||
window.removeEventListener('blur', onBlur, true); | ||
}; | ||
@@ -96,0 +106,0 @@ } |
{ | ||
"name": "@clayui/shared", | ||
"version": "3.107.0", | ||
"version": "3.109.0", | ||
"description": "ClayShared component", | ||
@@ -44,3 +44,3 @@ "license": "BSD-3-Clause", | ||
], | ||
"gitHead": "4b538e1e0b456006e2472ae6b7ec1e6b4bb096cb" | ||
"gitHead": "b750f3c76c8145575d75a34cf0e985586dc8b922" | ||
} |
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
135983
57
2532