diff --git a/src/ext/lib/uwui/UI.js b/src/ext/lib/uwui/UI.js index 53059d6..eee2442 100644 --- a/src/ext/lib/uwui/UI.js +++ b/src/ext/lib/uwui/UI.js @@ -42,7 +42,7 @@ class UI { const rootDiv = document.createElement('div'); - rootDiv.setAttribute('style', `position: ${this.uiConfig.style?.position ?? 'absolute'}; width: ${this.uiConfig.style?.width ?? '100%'}; height: ${this.uiConfig.style?.height ?? '100%'}; top: ${this.uiConfig.style?.height ?? '0'}; ${this.uiConfig.additionalStyle ?? ''}`); + rootDiv.setAttribute('style', `pointer-events: none; position: ${this.uiConfig.style?.position ?? 'absolute'}; width: ${this.uiConfig.style?.width ?? '100%'}; height: ${this.uiConfig.style?.height ?? '100%'}; top: ${this.uiConfig.style?.height ?? '0'}; ${this.uiConfig.additionalStyle ?? ''}`); rootDiv.setAttribute('id', uwid); rootDiv.classList.add('uw-ultrawidify-container-root'); diff --git a/src/ext/uw-ui.js b/src/ext/uw-ui.js index 6e98033..6a4ee4a 100644 --- a/src/ext/uw-ui.js +++ b/src/ext/uw-ui.js @@ -180,7 +180,7 @@ class UwUi { const uwid = `uw-ui-root-${random}`; const rootDiv = document.createElement('div'); - rootDiv.setAttribute("style", "position: fixed; top: 0; left: 0; width: 100vw; height: 100vh; z-index: 999999;"); + rootDiv.setAttribute("style", "position: fixed; top: 0; left: 0; width: 100vw; height: 100vh; z-index: 999999; pointer-events: none"); rootDiv.setAttribute("id", uwid); rootDiv.classList.add('uw-ultrawidify-container-root');