修复:在switchCameraNumber函数中添加event参数,更新HTML调用

This commit is contained in:
Hao Wang
2025-12-07 03:34:12 +08:00
parent c4735c0d3f
commit f8a398d237
2 changed files with 10 additions and 10 deletions

View File

@@ -47,7 +47,7 @@ function toggleFullscreen(cameraId) {
}
}
function switchCameraNumber(cameraId, cameraNumber) {
function switchCameraNumber(event, cameraId, cameraNumber) {
const frame = document.getElementById(`frame-${cameraId}`);
const controls = document.getElementById(`controls-${cameraId}`);
const buttons = controls.querySelectorAll('.selector-btn');