From 898ab86f4ce667da4072844154c4b31646207f08 Mon Sep 17 00:00:00 2001 From: Ellpeck Date: Mon, 2 Sep 2019 21:11:05 +0200 Subject: [PATCH] fixed the scroll bar reacting to a pressed mouse on enter --- MLEM.Ui/Elements/ScrollBar.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/MLEM.Ui/Elements/ScrollBar.cs b/MLEM.Ui/Elements/ScrollBar.cs index fd048e0..7e02438 100644 --- a/MLEM.Ui/Elements/ScrollBar.cs +++ b/MLEM.Ui/Elements/ScrollBar.cs @@ -61,7 +61,7 @@ namespace MLEM.Ui.Elements { // MOUSE INPUT var moused = this.Controls.MousedElement; - if (moused == this && this.Controls.Input.IsMouseButtonDown(MouseButton.Left)) { + if (moused == this && this.Controls.Input.IsMouseButtonPressed(MouseButton.Left)) { this.isMouseHeld = true; } else if (this.isMouseHeld && !this.Controls.Input.IsMouseButtonDown(MouseButton.Left)) { this.isMouseHeld = false;