Merge pull request #4651 from IgorA100/patch-387655

Fix: PanZoom. When scale > 1, prevent the player from responding to image clicks
copilot/refactor-filepath-handling^2
Isaac Connor 2026-03-04 17:27:15 -05:00 committed by GitHub
commit 08edd36191
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 4 additions and 0 deletions

View File

@ -252,12 +252,16 @@ var zmPanZoom = {
}
}
const videoJs = document.querySelector('.video-js .vjs-tech');
if (this.panZoom[id].getScale().toFixed(1) > 1) {
this.panZoom[id].setOptions({handleStartEvent: (event) => {
event.preventDefault();
}});
if (videoJs) videoJs.style.pointerEvents = 'none';
} else {
this.panZoom[id].setOptions({handleStartEvent: (event) => {}});
if (videoJs) videoJs.style.pointerEvents = '';
}
},