Fixed paint popup menu collision problems

This commit is contained in:
Yousef Khadadeh 2026-04-02 13:45:46 +03:00
parent 2eb2672329
commit 60c12ce150
5 changed files with 8 additions and 16 deletions

View file

@ -425,7 +425,8 @@ void Toolbar::paint_popup(Vector2f popupPos) {
gui.set_to_layout();
},
.mouseButton = [&](const InputManager::MouseButtonCallbackArgs& button, bool mouseHovering) {
main.world->drawProg.rightClickPopupHoverOnClick = mouseHovering;
if(!mouseHovering && button.down && button.button != InputManager::MouseButton::RIGHT)
main.world->drawProg.clear_right_click_popup();
}
});
});