diff --git a/scripts/uosc_shared/elements/Menu.lua b/scripts/uosc_shared/elements/Menu.lua index 7021b3e..fa8589b 100644 --- a/scripts/uosc_shared/elements/Menu.lua +++ b/scripts/uosc_shared/elements/Menu.lua @@ -499,7 +499,7 @@ function Menu:on_global_mbtn_left_down() self.drag_data = {{y = cursor.y, time = mp.get_time()}} self.current.fling = nil else - if cursor.x < self.ax then self:back() + if cursor.x < self.ax and self.current.parent_menu then self:back() else self:close() end end end