@glomex/glomex-dialog
Advanced tools
Comparing version 1.9.3 to 1.9.4
@@ -595,2 +595,3 @@ const NON_VISIBLE_WIDTH = window.innerWidth < 720 ? 320 : 640; | ||
const dockTarget = element.shadowRoot.querySelector('.dock-target'); | ||
const dialogElement = element.shadowRoot.querySelector('slot[name=dialog-element]'); | ||
// overlay for the whole page so that events don't bubble into other iframes | ||
@@ -637,3 +638,3 @@ const pageOverlay = document.createElement('div'); | ||
disconnectListeners(); | ||
element.style.pointerEvents = null; | ||
dialogElement.style.pointerEvents = null; | ||
// reset scrolling | ||
@@ -656,3 +657,3 @@ window.document.body.style.height = null; | ||
// has an iframe as child | ||
element.style.pointerEvents = 'none'; | ||
dialogElement.style.pointerEvents = 'none'; | ||
// prevent scrolling | ||
@@ -695,6 +696,2 @@ window.document.body.style.height = '100%'; | ||
function onClick(e) { | ||
e.preventDefault(); | ||
} | ||
// get hover working on iOS | ||
@@ -704,3 +701,2 @@ document.documentElement.addEventListener('touchstart', fixIosHover, false); | ||
dragHandle.addEventListener('touchstart', mouseDown, false); | ||
dragHandle.addEventListener('click', onClick, false); | ||
@@ -712,3 +708,2 @@ return () => { | ||
dragHandle.removeEventListener('touchstart', mouseDown, false); | ||
dragHandle.removeEventListener('click', onClick, false); | ||
}; | ||
@@ -715,0 +710,0 @@ } |
{ | ||
"name": "@glomex/glomex-dialog", | ||
"version": "1.9.3", | ||
"version": "1.9.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
98266
748