diff --git a/AngelLoader/CustomControls/RichTextBoxCustom.cs b/AngelLoader/CustomControls/RichTextBoxCustom.cs index 98878473c..e17a63046 100644 --- a/AngelLoader/CustomControls/RichTextBoxCustom.cs +++ b/AngelLoader/CustomControls/RichTextBoxCustom.cs @@ -382,17 +382,16 @@ private static void RepositionScroll(IntPtr handle, SCROLLINFO si) // Intercept mousewheel and make RichTextBox scroll using the above method private void InterceptMousewheel(ref Message m) { - int delta = (int)m.WParam >> 16 & 0xFF; if (((ModifierKeys & Keys.Control) != 0) || !VerticalScrollBarVisible(this)) { base.WndProc(ref m); return; } - if ((delta >> 7) == 1) + if ((int)m.WParam < 0) { BetterScroll(m.HWnd, 50); } - if ((delta >> 7) == 0) + if ((int)m.WParam > 0) { BetterScroll(m.HWnd, -50); }