@glomex/glomex-dialog
Advanced tools
Comparing version 1.10.3 to 1.10.4
@@ -762,7 +762,7 @@ const NON_VISIBLE_WIDTH = window.innerWidth < 720 ? 320 : 640; | ||
window.addEventListener('touchmove', onNonPassiveTouchMove, { passive: false, once: true }); | ||
document.addEventListener('mousemove', onMove, false); | ||
document.addEventListener('touchmove', onMove, false); | ||
document.addEventListener('mouseup', mouseUp, false); | ||
document.addEventListener('touchend', mouseUp, false); | ||
document.addEventListener('touchcancel', mouseUp, false); | ||
document.addEventListener('mousemove', onMove, { passive: true }); | ||
document.addEventListener('touchmove', onMove, { passive: true }); | ||
document.addEventListener('mouseup', mouseUp, { passive: true }); | ||
document.addEventListener('touchend', mouseUp, { passive: true }); | ||
document.addEventListener('touchcancel', mouseUp, { passive: true }); | ||
}; | ||
@@ -772,7 +772,7 @@ | ||
window.removeEventListener('touchmove', onNonPassiveTouchMove, { passive: false, once: true }); | ||
document.removeEventListener('mousemove', onMove, false); | ||
document.removeEventListener('touchmove', onMove, false); | ||
document.removeEventListener('mouseup', mouseUp, false); | ||
document.removeEventListener('touchend', mouseUp, false); | ||
document.removeEventListener('touchcancel', mouseUp, false); | ||
document.removeEventListener('mousemove', onMove, { passive: true }); | ||
document.removeEventListener('touchmove', onMove, { passive: true }); | ||
document.removeEventListener('mouseup', mouseUp, { passive: true }); | ||
document.removeEventListener('touchend', mouseUp, { passive: true }); | ||
document.removeEventListener('touchcancel', mouseUp, { passive: true }); | ||
} | ||
@@ -783,11 +783,11 @@ | ||
// get hover working on iOS | ||
document.documentElement.addEventListener('touchstart', fixIosHover, false); | ||
dragHandle.addEventListener('mousedown', mouseDown, false); | ||
dragHandle.addEventListener('touchstart', mouseDown, false); | ||
document.documentElement.addEventListener('touchstart', fixIosHover, { passive: true }); | ||
dragHandle.addEventListener('mousedown', mouseDown, { passive: false }); | ||
dragHandle.addEventListener('touchstart', mouseDown, { passive: true }); | ||
return () => { | ||
mouseUp(); | ||
document.documentElement.removeEventListener('touchstart', fixIosHover, false); | ||
dragHandle.removeEventListener('mousedown', mouseDown, false); | ||
dragHandle.removeEventListener('touchstart', mouseDown, false); | ||
document.documentElement.removeEventListener('touchstart', fixIosHover, { passive: true }); | ||
dragHandle.removeEventListener('mousedown', mouseDown, { passive: false }); | ||
dragHandle.removeEventListener('touchstart', mouseDown, { passive: true }); | ||
}; | ||
@@ -794,0 +794,0 @@ } |
{ | ||
"name": "@glomex/glomex-dialog", | ||
"version": "1.10.3", | ||
"version": "1.10.4", | ||
"description": "A dialog web component that allows docking a video player or putting it in a lightbox", | ||
@@ -5,0 +5,0 @@ "type": "module", |
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
102047