Skip to content

Commit d41a812

Browse files
committed
修复win下自定义控件点击问题
1 parent c319ba2 commit d41a812

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/components/window-controls/WindowsWindowControls.vue

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -113,6 +113,7 @@ onBeforeUnmount(async () => {
113113
border-radius: 0;
114114
overflow: hidden;
115115
box-shadow: inset 0 -1px 0 rgba(0, 0, 0, 0.18);
116+
-webkit-app-region: no-drag;
116117
}
117118
118119
.win-control {
@@ -126,6 +127,7 @@ onBeforeUnmount(async () => {
126127
color: rgba(255, 255, 255, 0.82);
127128
cursor: pointer;
128129
transition: background-color 0.16s ease, color 0.16s ease;
130+
-webkit-app-region: no-drag;
129131
}
130132
131133
.win-control:focus-visible {

0 commit comments

Comments
 (0)