ReaderGesture: cleanup (#6292)

convert all gesture actions to use events for better modularity
add network event handlers and device event handlers
This commit is contained in:
yparitcher
2020-07-12 14:47:49 -04:00
committed by GitHub
parent f4dad2fae8
commit 70f89c4df1
26 changed files with 585 additions and 595 deletions

View File

@@ -322,6 +322,10 @@ function FileChooser:changeToPath(path, focused_path)
self:onPathChanged(path)
end
function FileChooser:onFolderUp()
self:changeToPath(string.format("%s/..", self.path))
end
function FileChooser:changePageToPath(path)
if not path then return end
for num, item in ipairs(self.item_table) do