Skip to content
This repository was archived by the owner on Oct 26, 2021. It is now read-only.

Commit eb8d6e7

Browse files
authored
Fixed MouseUp
1 parent 47e8d26 commit eb8d6e7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

SimpleFlatModMenu.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@ public static void MyGUI()
6969
ifDragged = true;
7070
}
7171
}
72-
else if (Event.current.type == EventType.MouseUp)
72+
else if (imageRect.Contains(Event.current.mousePosition) && Event.current.type == EventType.MouseUp)
7373
{
7474
buttonPressed = false;
7575
time = 0;

0 commit comments

Comments
 (0)