mirror of
https://github.com/koreader/koreader.git
synced 2025-08-10 00:52:38 +00:00
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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user