[fix] fix incorrect left-mouse click position on PC client

This commit is contained in:
dijunkun
2025-11-19 00:14:04 +08:00
parent f6a519b6e4
commit d772d366bf

View File

@@ -349,11 +349,10 @@
}
event.preventDefault?.();
this.state.lastPointerPos = { x: event.clientX, y: event.clientY };
this.ensureVideoRect();
if (this.state.videoRect && this.isInsideVideo(event.clientX, event.clientY)) {
this.updateNormalizedFromClient(event.clientX, event.clientY);
// this.updateNormalizedFromClient(event.clientX, event.clientY);
this.requestPointerLock();
}