mirror of
https://github.com/Ellpeck/MLEM.git
synced 2024-11-22 12:58:33 +01:00
fixed the scroll bar reacting to a pressed mouse on enter
This commit is contained in:
parent
0dff0e275d
commit
898ab86f4c
1 changed files with 1 additions and 1 deletions
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue