File tree Expand file tree Collapse file tree 2 files changed +1350
-1326
lines changed
Expand file tree Collapse file tree 2 files changed +1350
-1326
lines changed Original file line number Diff line number Diff line change @@ -172,7 +172,14 @@ class WebuiBridge {
172172 if ( ! this . #isDragging) {
173173 let target = e . target ;
174174 while ( target ) {
175- if ( window . getComputedStyle ( target ) . getPropertyValue ( "-webkit-app-region" ) === "drag" ) {
175+ let computedStyle = window . getComputedStyle ( target ) ;
176+
177+ let webkitComputed = computedStyle . getPropertyValue ( "-webkit-app-region" ) . trim ( ) ;
178+
179+ /* Compatibility for platforms without `-webkit-app-region` */
180+ let webuiComputed = computedStyle . getPropertyValue ( "--webui-app-region" ) . trim ( ) ;
181+
182+ if ( webkitComputed === "drag" || webuiComputed === "drag" ) {
176183 this . #initialMouseX = e . screenX ;
177184 this . #initialMouseY = e . screenY ;
178185 this . #initialWindowX = this . #currentWindowX;
You can’t perform that action at this time.
0 commit comments