Use exact positioning for the ItemList::get_tooltip method.

This commit is contained in:
Ryan Stein 2018-01-01 22:46:32 -05:00
parent c9005ca7fd
commit 3c9ee75e26

View file

@ -1192,7 +1192,7 @@ bool ItemList::is_pos_at_end_of_items(const Point2 &p_pos) const {
String ItemList::get_tooltip(const Point2 &p_pos) const {
int closest = get_item_at_position(p_pos);
int closest = get_item_at_position(p_pos, true);
if (closest != -1) {
if (!items[closest].tooltip_enabled) {