Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 8 additions & 1 deletion bridge/webui.ts
Original file line number Diff line number Diff line change
Expand Up @@ -172,7 +172,14 @@ class WebuiBridge {
if (!this.#isDragging) {
let target = e.target;
while (target) {
if (window.getComputedStyle(target).getPropertyValue("-webkit-app-region") === "drag") {
let computedStyle = window.getComputedStyle(target);

let webkitComputed = computedStyle.getPropertyValue("-webkit-app-region").trim();

/* Compatibility for platforms without `-webkit-app-region` */
let webuiComputed = computedStyle.getPropertyValue("--webui-app-region").trim();

if (webkitComputed === "drag" || webuiComputed === "drag") {
this.#initialMouseX = e.screenX;
this.#initialMouseY = e.screenY;
this.#initialWindowX = this.#currentWindowX;
Expand Down
Loading