fix: click to the left of file menus navigating up instead of closing the menu

This commit is contained in:
tomasklaen
2023-01-30 15:22:36 +01:00
parent 479816af52
commit 3b68314fcf

View File

@@ -499,7 +499,7 @@ function Menu:on_global_mbtn_left_down()
self.drag_data = {{y = cursor.y, time = mp.get_time()}} self.drag_data = {{y = cursor.y, time = mp.get_time()}}
self.current.fling = nil self.current.fling = nil
else 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 else self:close() end
end end
end end