Skip to content

Commit d2f7129

Browse files
committed
Include delta scroll amount in miniwindow scroll message
1 parent 4d5115b commit d2f7129

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

mushview.cpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5218,8 +5218,9 @@ unsigned int iScrollLines;
52185218
dc.DPtoLP(&point);
52195219

52205220
// if over miniwindow, don't keep going
5221+
// delta amount (unsigned) is in the high-order word
52215222

5222-
if (Mouse_Wheel_MiniWindow (pDoc, point, zDelta < 0 ? MW_MOUSE_SCROLL_BACK : 0))
5223+
if (Mouse_Wheel_MiniWindow (pDoc, point, (zDelta < 0 ? MW_MOUSE_SCROLL_BACK : 0) | (abs (zDelta) << 16)))
52235224
return 1;
52245225

52255226
/*

0 commit comments

Comments
 (0)