Merge pull request #4651 from IgorA100/patch-387655
Fix: PanZoom. When scale > 1, prevent the player from responding to image clickscopilot/refactor-filepath-handling^2
commit
08edd36191
|
|
@ -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 = '';
|
||||
}
|
||||
},
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue