Fixing zoom when panning is off

This commit is contained in:
Sodra 2022-03-02 19:02:21 -08:00
parent bb5081189e
commit 03ffce8a89
1 changed files with 2 additions and 1 deletions

View File

@ -407,9 +407,10 @@ void VideoDisplay::OnMouseLeave(wxMouseEvent& event) {
}
void VideoDisplay::OnMouseWheel(wxMouseEvent& event) {
bool videoPan = OPT_GET("Video/Video Pan")->GetBool();
if (int wheel = event.GetWheelRotation()) {
if (ForwardMouseWheelEvent(this, event))
if (event.ControlDown())
if (event.ControlDown() || !videoPan)
SetWindowZoom(windowZoomValue + .125 * (wheel / event.GetWheelDelta()));
else
SetVideoZoom(wheel / event.GetWheelDelta());