diff --git a/frontend/apps/reader/modules/readergesture.lua b/frontend/apps/reader/modules/readergesture.lua index 4955abd7d..424784116 100644 --- a/frontend/apps/reader/modules/readergesture.lua +++ b/frontend/apps/reader/modules/readergesture.lua @@ -101,23 +101,23 @@ function ReaderGesture:init() tap_left_bottom_corner = Device:hasFrontlight() and "toggle_frontlight" or "nothing", short_diagonal_swipe = "full_refresh", multiswipe = "nothing", -- otherwise registerGesture() won't pick up on multiswipes - multiswipe_west_east = "previous_location", - multiswipe_east_west = "latest_bookmark", - multiswipe_north_east = "toc", + multiswipe_west_east = self.ges_mode == "gesture_reader" and "previous_location" or "nothing", + multiswipe_east_west = self.ges_mode == "gesture_reader" and "latest_bookmark" or "nothing", + multiswipe_north_east = self.ges_mode == "gesture_reader" and "toc" or "nothing", multiswipe_north_west = self.ges_mode == "gesture_fm" and "folder_up" or "bookmarks", multiswipe_east_north = "history", multiswipe_east_south = "go_to", - multiswipe_south_north = "skim", - multiswipe_south_east = "toggle_reflow", + multiswipe_south_north = self.ges_mode == "gesture_reader" and "skim" or "nothing", + multiswipe_south_east = self.ges_mode == "gesture_reader" and "toggle_reflow" or "nothing", multiswipe_south_west = "show_frontlight_dialog", multiswipe_west_south = "back", - multiswipe_north_south_north = "prev_chapter", - multiswipe_south_north_south = "next_chapter", + multiswipe_north_south_north = self.ges_mode == "gesture_reader" and "prev_chapter" or "nothing", + multiswipe_south_north_south = self.ges_mode == "gesture_reader" and "next_chapter" or "nothing", multiswipe_west_east_west = "open_previous_document", - multiswipe_east_north_west = "zoom_contentwidth", - multiswipe_south_east_north = "zoom_contentheight", - multiswipe_east_north_west_east = "zoom_pagewidth", - multiswipe_south_east_north_south = "zoom_pageheight", + multiswipe_east_north_west = self.ges_mode == "gesture_reader" and "zoom_contentwidth" or "nothing", + multiswipe_south_east_north = self.ges_mode == "gesture_reader" and "zoom_contentheight" or "nothing", + multiswipe_east_north_west_east = self.ges_mode == "gesture_reader" and "zoom_pagewidth" or "nothing", + multiswipe_south_east_north_south = self.ges_mode == "gesture_reader" and "zoom_pageheight" or "nothing", multiswipe_east_south_west_north = "full_refresh", } local gm = G_reader_settings:readSetting(self.ges_mode)