Set "pointer-events: none" for "imgInfoBlock" and "infoBlock" to disable pointer events for them (MonitorStream.js)

pull/4709/head
IgorA100 2026-03-14 17:16:39 +03:00 committed by GitHub
parent 94b1ead0f4
commit f536252a85
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 2 additions and 0 deletions

View File

@ -702,6 +702,7 @@ function MonitorStream(monitorData) {
imgInfoBlock.style.width = '100%';
imgInfoBlock.style.height = '100%';
imgInfoBlock.style.zIndex = 10000;
imgInfoBlock.style.pointerEvents = 'none';
this.getElement().parentNode.appendChild(imgInfoBlock);
currentImg = imgInfoBlock;
}
@ -721,6 +722,7 @@ function MonitorStream(monitorData) {
infoBlock.style.top = '50%';
infoBlock.style.left = '50%';
infoBlock.style.transform = 'translate(-50%, -50%)';
infoBlock.style.pointerEvents = 'none';
this.getElement().parentNode.appendChild(infoBlock);
currentInfoBlock = infoBlock;
}