try fix button stuck down

This commit is contained in:
2025-04-29 11:39:40 -05:00
parent 9d66199d03
commit 4aabc97c7b

View File

@@ -77,6 +77,7 @@ eToolbarButton cToolbar::button_hit(sf::RenderWindow& win, location click, cFram
clickPos.y -= dest_rect.top;
clicked = toolbar[i].bounds.contains(clickPos);
active = -1;
break;
} else if(e.type == sf::Event::MouseMoved){
location toPos(e.mouseMove.x, e.mouseMove.y);
toPos = win.mapPixelToCoords(toPos);