mirror of
https://github.com/ultimatepp/ultimatepp.git
synced 2026-08-25 14:22:54 -06:00
CtrlCore: Horizontal mouse wheel improvements
This commit is contained in:
parent
b3762abf9a
commit
f878d03f67
14 changed files with 33 additions and 16 deletions
|
|
@ -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);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue