summaryrefslogtreecommitdiff
path: root/scene/gui
diff options
context:
space:
mode:
authorAlexHolly <alexander.holland@live.de>2017-10-18 14:56:38 +0200
committerAlexHolly <alexander.holland@live.de>2017-10-18 14:56:38 +0200
commit776fbe749c481d6b4f2a38f07e1a276548d2acab (patch)
tree49e4522f7a87d49f57152ba1d95c9270f1c0de33 /scene/gui
parentf52ab8d86418a67ddee247ed7765e72935b0c57f (diff)
Itemlist rmb now provides the same pos as Tree rmb
Diffstat (limited to 'scene/gui')
-rw-r--r--scene/gui/item_list.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/scene/gui/item_list.cpp b/scene/gui/item_list.cpp
index a034c7224f..623a110263 100644
--- a/scene/gui/item_list.cpp
+++ b/scene/gui/item_list.cpp
@@ -489,7 +489,7 @@ void ItemList::_gui_input(const Ref<InputEvent> &p_event) {
if (mb->get_button_index() == BUTTON_RIGHT) {
- emit_signal("item_rmb_selected", i, pos);
+ emit_signal("item_rmb_selected", i, get_local_mouse_position());
}
} else {
@@ -500,7 +500,7 @@ void ItemList::_gui_input(const Ref<InputEvent> &p_event) {
if (items[i].selected && mb->get_button_index() == BUTTON_RIGHT) {
- emit_signal("item_rmb_selected", i, pos);
+ emit_signal("item_rmb_selected", i, get_local_mouse_position());
} else {
bool selected = !items[i].selected;
@@ -515,7 +515,7 @@ void ItemList::_gui_input(const Ref<InputEvent> &p_event) {
if (mb->get_button_index() == BUTTON_RIGHT) {
- emit_signal("item_rmb_selected", i, pos);
+ emit_signal("item_rmb_selected", i, get_local_mouse_position());
} else if (/*select_mode==SELECT_SINGLE &&*/ mb->is_doubleclick()) {
emit_signal("item_activated", i);