Fixed paint popup menu collision problems
This commit is contained in:
parent
2eb2672329
commit
60c12ce150
5 changed files with 8 additions and 16 deletions
|
|
@ -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();
|
||||
}
|
||||
});
|
||||
});
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue