fix: block remote mouse input over control bar

This commit is contained in:
dijunkun
2026-07-27 00:30:48 +08:00
parent 765452e3c9
commit a6e8038286
2 changed files with 39 additions and 28 deletions
+4 -1
View File
@@ -508,7 +508,10 @@ export component StreamWindow inherits Window {
&& (event.kind == PointerEventKind.up
|| event.kind == PointerEventKind.cancel) {
root.end-control-drag();
} else if !root.control-dragging {
// The control bar overlays the remote video. Events in
// its full rectangle (including gaps between buttons)
// are local UI input and must never reach the peer.
} else if !root.control-dragging && !over-control {
root.pointer-input(event.button, event.kind, self.mouse-x, self.mouse-y);
}
}