From 60fa0f0eae4f229a5048825d04254dfdd63b9533 Mon Sep 17 00:00:00 2001 From: Xanfre Date: Wed, 8 May 2019 17:58:53 -0500 Subject: [PATCH] Cleanup --- AngelLoader/CustomControls/RichTextBoxCustom.cs | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) 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); }