diff --git a/src/uosc/elements/Menu.lua b/src/uosc/elements/Menu.lua index a9456c11..50854850 100644 --- a/src/uosc/elements/Menu.lua +++ b/src/uosc/elements/Menu.lua @@ -595,7 +595,7 @@ function Menu:move_selected_item_to(index) if callback and from and from ~= index and index >= 1 and index <= #self.current.items then callback(from, index, self.current.submenu_path) self.current.selected_index = index - self:set_scroll_by((index - from) * self.scroll_step) + self:scroll_to_index(index, self.current, true) end end