Fix: When Zooming out of a video frame, do not apply updatePrevCoordinatFrame()

pull/3934/head
IgorA100 2024-04-02 14:37:29 +03:00 committed by GitHub
parent 131a33ef38
commit da62c5b65a
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 2 additions and 2 deletions

View File

@ -613,15 +613,15 @@ function handleClick(event) {
const x = parseInt((event.pageX - pos.left) * scaleX);
const y = parseInt((event.pageY - pos.top) * scaleY);
updatePrevCoordinatFrame(x, y); //Fixing current coordinates after scaling or shifting
if (showMode == 'events' || !imageControlMode) {
if (event.shift || event.shiftKey) {
streamCmdPan(x, y);
updatePrevCoordinatFrame(x, y); //Fixing current coordinates after scaling or shifting
} else if (event.ctrlKey) {
streamCmdZoomOut();
} else {
streamCmdZoomIn(x, y);
updatePrevCoordinatFrame(x, y); //Fixing current coordinates after scaling or shifting
}
} else {
controlCmdImage(x, y);