Small improvements in breadcrumb. Minor refactor of EventDispatcher::getMousePos.

This commit is contained in:
Martín Lucas Golini
2024-09-11 20:27:14 -03:00
parent 16c2ac84f0
commit 4d0da818c0
9 changed files with 29 additions and 28 deletions

View File

@@ -504,7 +504,7 @@ void StatusBuildOutputController::createContainer() {
UITableCell* cell = mTableIssues->getCellFromIndex( idx );
if ( modelEvent->getTriggerEvent()->getType() == Event::MouseClick ||
cell == nullptr ) {
Vector2f pos( mApp->getWindow()->getInput()->getMousePosf() );
Vector2f pos( mApp->getWindow()->getInput()->getMousePos().asFloat() );
menu->nodeToWorldTranslation( pos );
UIMenu::findBestMenuPos( pos, menu );
menu->setPixelsPosition( pos );