diff --git a/AngelLoader/CustomControls/RichTextBoxCustom.cs b/AngelLoader/CustomControls/RichTextBoxCustom.cs index 1b7c1e7c5..45a4fcb32 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; if (((ModifierKeys & Keys.Control) != 0) || !VerticalScrollBarVisible(this)) { base.WndProc(ref m); return; } - if (delta < 0) + if ((int)m.WParam < 0) { BetterScroll(m.HWnd, 50); } - else + if ((int)m.WParam > 0) { BetterScroll(m.HWnd, -50); }