@glomex/glomex-dialog
Advanced tools
Comparing version 2.2.1 to 2.2.2
@@ -1011,2 +1011,3 @@ import { RotataToFullscreen } from './rotate-to-fullscreen.js'; | ||
let dockTargetRect; | ||
let bodyStyleAdjusted = false; | ||
const dragHandle = element.shadowRoot.querySelector('slot[name=dock-background]'); | ||
@@ -1058,3 +1059,3 @@ const dockTarget = element.shadowRoot.querySelector('.dock-target'); | ||
// reset scrolling | ||
if (this._bodyStyleAdjusted) { | ||
if (bodyStyleAdjusted) { | ||
window.document.body.style.height = null; | ||
@@ -1081,3 +1082,3 @@ window.document.body.style.overflow = null; | ||
window.document.body.style.overflow = 'hidden'; | ||
this._bodyStyleAdjusted = true; | ||
bodyStyleAdjusted = true; | ||
// place an overlay above the whole document to | ||
@@ -1113,2 +1114,7 @@ // prevent events bubbling into iframes on that page during drag | ||
document.removeEventListener('touchcancel', mouseUp, { passive: true }); | ||
if (bodyStyleAdjusted) { | ||
window.document.body.style.height = null; | ||
window.document.body.style.overflow = null; | ||
} | ||
bodyStyleAdjusted = false; | ||
} | ||
@@ -1115,0 +1121,0 @@ |
{ | ||
"name": "@glomex/glomex-dialog", | ||
"version": "2.2.1", | ||
"version": "2.2.2", | ||
"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
123309
1261