1
0
Fork 0
mirror of https://github.com/Ellpeck/MLEM.git synced 2024-11-26 06:28:35 +01:00

fixed the scroll bar reacting to a pressed mouse on enter

This commit is contained in:
Ellpeck 2019-09-02 21:11:05 +02:00
parent 0dff0e275d
commit 898ab86f4c

View file

@ -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;