Skip to content

Commit

Permalink
Cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
Xanfre committed May 8, 2019
1 parent 647ef32 commit 60fa0f0
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions AngelLoader/CustomControls/RichTextBoxCustom.cs
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}
Expand Down

0 comments on commit 60fa0f0

Please sign in to comment.