mirror of
https://github.com/Relintai/pandemonium_engine.git
synced 2024-11-21 16:37:20 +01:00
Fix button click detection when Tree
is rotated
This commit is contained in:
parent
c2da31c377
commit
0cee401740
@ -1729,7 +1729,7 @@ int Tree::propagate_mouse_event(const Point2i &p_pos, int x_ofs, int y_ofs, bool
|
||||
cache.click_id = c.buttons[j].id;
|
||||
cache.click_item = p_item;
|
||||
cache.click_column = col;
|
||||
cache.click_pos = get_global_mouse_position() - get_global_position();
|
||||
cache.click_pos = get_local_mouse_position();
|
||||
update();
|
||||
//emit_signal("button_pressed");
|
||||
return -1;
|
||||
|
Loading…
Reference in New Issue
Block a user