Bladeren bron

fix for global mouse events

milan jurkulák 1 jaar geleden
bovenliggende
commit
828fb1a7f6

+ 1 - 1
src/main/kotlin/eu/mjdev/desktop/components/controlcenter/ControlCenter.kt

@@ -80,7 +80,7 @@ fun ControlCenter(
         size
     ) {
         MouseRange(
-            x = containerSize.width - size.width,
+            x = containerSize.width - controlCenterDividerWidth,
             y = 0.dp,
             width = size.width,
             height = containerSize.height

+ 1 - 1
src/main/kotlin/eu/mjdev/desktop/components/desktoppanel/DesktopPanel.kt

@@ -104,7 +104,7 @@ fun DesktopPanel(
     ) {
         MouseRange(
             x = 0.dp,
-            y = containerSize.height - size.height,
+            y = containerSize.height - controlCenterDividerWidth,
             width = containerSize.width,
             height = size.height
         )