Designer is working great now, and this fixes a bunch of things about the mouse.
This commit is contained in:
parent
f05f652c26
commit
ffc787df64
10 changed files with 4958 additions and 91 deletions
|
@ -239,9 +239,6 @@ bool SFMLRender::mouse_position(Panel &panel, Point &out) {
|
|||
|
||||
auto bounds = panel.grid ? $grid_bounds : $text_bounds;
|
||||
|
||||
println("mouse position pos={},{} panel.pos={},{} panel.size={},{}",
|
||||
pos.x, pos.y, panel.x, panel.y, panel.width, panel.height);
|
||||
|
||||
if(pos.x >= panel.x && pos.y >= panel.y
|
||||
&& pos.x <= (panel.x + panel.width * bounds.width)
|
||||
&& pos.y <= (panel.y + panel.height * bounds.height))
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue