mirror of
https://github.com/rizonesoft/Notepad3.git
synced 2026-06-11 21:03:05 +08:00
Update ScintillaWin.cxx
This commit is contained in:
parent
9ede778818
commit
36d873d78d
@ -1447,6 +1447,15 @@ sptr_t ScintillaWin::WndProc(unsigned int iMessage, uptr_t wParam, sptr_t lParam
|
||||
|
||||
// Either SCROLL or ZOOM. We handle the wheel steppings calculation
|
||||
wheelDelta -= GET_WHEEL_DELTA_WPARAM(wParam);
|
||||
|
||||
// Hold RIGHT MOUSE BUTTON and SCROLL to cycle through UNDO history
|
||||
if (wParam & MK_RBUTTON) {
|
||||
if (wheelDelta >= 0)
|
||||
Redo();
|
||||
else
|
||||
Undo();
|
||||
}
|
||||
|
||||
if (std::abs(wheelDelta) >= WHEEL_DELTA && linesPerScroll > 0) {
|
||||
Sci::Line linesToScroll = linesPerScroll;
|
||||
if (linesPerScroll == WHEEL_PAGESCROLL)
|
||||
|
||||
Loading…
Reference in New Issue
Block a user