Skip to content

Commit f28d525

Browse files
committed
Fix we don't support viewport horizontal scrolling yet
1 parent 8696555 commit f28d525

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/cascadia/TerminalControl/ControlInteractivity.cpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -517,15 +517,15 @@ namespace winrt::Microsoft::Terminal::Control::implementation
517517

518518
if (ctrlPressed && shiftPressed && _core->Settings().ScrollToChangeOpacity())
519519
{
520-
_mouseTransparencyHandler(delta.X != 0 ? delta.X : delta.Y);
520+
_mouseTransparencyHandler(delta.Y);
521521
}
522522
else if (ctrlPressed && !shiftPressed && _core->Settings().ScrollToZoom())
523523
{
524-
_mouseZoomHandler(delta.X != 0 ? delta.X : delta.Y);
524+
_mouseZoomHandler(delta.Y);
525525
}
526526
else
527527
{
528-
_mouseScrollHandler(delta.X != 0 ? delta.X : delta.Y, pixelPosition, WI_IsFlagSet(buttonState, MouseButtonState::IsLeftButtonDown));
528+
_mouseScrollHandler(delta.Y, pixelPosition, WI_IsFlagSet(buttonState, MouseButtonState::IsLeftButtonDown));
529529
}
530530
return false;
531531
}

0 commit comments

Comments
 (0)