ZoneMinder / zoneminder

ZoneMinder is a free, open source Closed-circuit television software application developed for Linux which supports IP, USB and Analog cameras.
http://www.zoneminder.com/
GNU General Public License v2.0
4.82k stars 1.19k forks source link

Feat: Mouse moving an enlarged video frame during live viewing #3934

Closed IgorA100 closed 1 month ago

IgorA100 commented 1 month ago

Now it is possible to move an enlarged video frame by moving the mouse and not just by clicking while holding down "Shift" This function works by simultaneously pressing “Ctrl” + “Shift”. Those. you need to hold down “Ctrl” + “Shift”, then by pressing the left mouse button “capture” the video frame and moving the mouse will move the video frame. I found this very convenient, especially when it is necessary to move a greatly enlarged video frame a short distance. All the previous functionality when holding “Ctrl” (decrease) or “Shift” (positioning) or simply “click” (increase) remained unchanged.

IgorA100 commented 1 month ago

If this PR is approved, then perhaps it is worth reconsidering the algorithm for enlarging the image by clicking the mouse? Make it more intuitive? Those. to enlarge exactly the visual area of the image on which the mouse was clicked, and not the virtual area that is comparable to the click location at a scale of 1:1? I don't know if you'll understand my point? :

IgorA100 commented 1 month ago

I now have another thought about changing the behavior algorithm. I can make an algorithm like this: If the left mouse button is pressed and released without displacement (displacement less than XX pixels (for example 30) - increase the video frame. If the left mouse button is pressed and the mouse moves by more than XX pixels (for example, 30), move the video frame. How do you like this idea?

IgorA100 commented 1 month ago

@connortechnology If you like this PR, I will do the same for viewing the recorded events.