Fix diagonal refresh not working in TOC and History

By delegating diagonal swipe handling to GestureManager only
when the Menu or FileChooser instance is the FileManager one.
This commit is contained in:
poire-z
2018-12-05 12:56:54 +01:00
parent a2e7e62be7
commit ed8f87f9f4
2 changed files with 5 additions and 2 deletions

View File

@@ -1191,7 +1191,8 @@ function Menu:onSwipe(arg, ges_ev)
-- no use for now
do end -- luacheck: ignore 541
else -- diagonal swipe
if G_reader_settings:readSetting("gesture_fm") and G_reader_settings:readSetting("gesture_fm")["short_diagonal_swipe"] then
if self.is_file_manager and G_reader_settings:readSetting("gesture_fm") and
G_reader_settings:readSetting("gesture_fm")["short_diagonal_swipe"] then
-- managed by gesture manager
do end -- luacheck: ignore 541
else