diff --git a/frontend/dispatcher.lua b/frontend/dispatcher.lua index d75766ced..54e8d6a4e 100644 --- a/frontend/dispatcher.lua +++ b/frontend/dispatcher.lua @@ -1016,7 +1016,7 @@ function Dispatcher:isActionEnabled(action) return not disabled end -function Dispatcher:_showAsMenu(settings) +function Dispatcher:_showAsMenu(settings, gesture) local display_list = Dispatcher:getDisplayList(settings) local quickmenu local buttons = {} @@ -1041,6 +1041,7 @@ function Dispatcher:_showAsMenu(settings) width_factor = 0.8, use_info_style = false, buttons = buttons, + anchor = function() return gesture and gesture.pos end, } UIManager:show(quickmenu) end @@ -1053,7 +1054,7 @@ arguments are: --]]-- function Dispatcher:execute(settings, gesture) if settings.settings ~= nil and settings.settings.show_as_quickmenu == true then - return Dispatcher:_showAsMenu(settings) + return Dispatcher:_showAsMenu(settings, gesture) end local has_many = Dispatcher:_itemsCount(settings) > 1 if has_many then