CtrlCore: Horizontal mouse wheel improvements

This commit is contained in:
Mirek Fidler 2024-02-17 13:44:44 +01:00
parent b3762abf9a
commit f878d03f67
14 changed files with 33 additions and 16 deletions

View file

@ -427,10 +427,13 @@ void TextCompareCtrl::Layout()
void TextCompareCtrl::MouseWheel(Point pt, int zdelta, dword keyflags)
{
scroll.WheelY(zdelta);
if(keyflags & K_SHIFT)
scroll.WheelX(zdelta);
else
scroll.WheelY(zdelta);
}
void TextCompareCtrl::MouseWheelH(Point pt, int zdelta, dword keyflags)
void TextCompareCtrl::HorzMouseWheel(Point pt, int zdelta, dword keyflags)
{
scroll.WheelX(zdelta);
}