minor input bug fix

This commit is contained in:
Kae 2024-02-22 17:26:12 +11:00
parent ae3ecabcea
commit 9485aff8b8

View File

@ -348,6 +348,8 @@ bool MainInterface::handleInputEvent(InputEvent const& event) {
if (mouseDown->mouseButton == MouseButton::Left || mouseDown->mouseButton == MouseButton::Right if (mouseDown->mouseButton == MouseButton::Left || mouseDown->mouseButton == MouseButton::Right
|| mouseDown->mouseButton == MouseButton::Middle) || mouseDown->mouseButton == MouseButton::Middle)
return overlayClick(mouseDown->mousePosition, mouseDown->mouseButton); return overlayClick(mouseDown->mousePosition, mouseDown->mouseButton);
else
return false;
} else if (auto mouseUp = event.ptr<MouseButtonUpEvent>()) { } else if (auto mouseUp = event.ptr<MouseButtonUpEvent>()) {
if (mouseUp->mouseButton == MouseButton::Left) if (mouseUp->mouseButton == MouseButton::Left)