|
|
@ -101,23 +101,23 @@ function ReaderGesture:init()
|
|
|
|
tap_left_bottom_corner = Device:hasFrontlight() and "toggle_frontlight" or "nothing",
|
|
|
|
tap_left_bottom_corner = Device:hasFrontlight() and "toggle_frontlight" or "nothing",
|
|
|
|
short_diagonal_swipe = "full_refresh",
|
|
|
|
short_diagonal_swipe = "full_refresh",
|
|
|
|
multiswipe = "nothing", -- otherwise registerGesture() won't pick up on multiswipes
|
|
|
|
multiswipe = "nothing", -- otherwise registerGesture() won't pick up on multiswipes
|
|
|
|
multiswipe_west_east = "previous_location",
|
|
|
|
multiswipe_west_east = self.ges_mode == "gesture_reader" and "previous_location" or "nothing",
|
|
|
|
multiswipe_east_west = "latest_bookmark",
|
|
|
|
multiswipe_east_west = self.ges_mode == "gesture_reader" and "latest_bookmark" or "nothing",
|
|
|
|
multiswipe_north_east = "toc",
|
|
|
|
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_north_west = self.ges_mode == "gesture_fm" and "folder_up" or "bookmarks",
|
|
|
|
multiswipe_east_north = "history",
|
|
|
|
multiswipe_east_north = "history",
|
|
|
|
multiswipe_east_south = "go_to",
|
|
|
|
multiswipe_east_south = "go_to",
|
|
|
|
multiswipe_south_north = "skim",
|
|
|
|
multiswipe_south_north = self.ges_mode == "gesture_reader" and "skim" or "nothing",
|
|
|
|
multiswipe_south_east = "toggle_reflow",
|
|
|
|
multiswipe_south_east = self.ges_mode == "gesture_reader" and "toggle_reflow" or "nothing",
|
|
|
|
multiswipe_south_west = "show_frontlight_dialog",
|
|
|
|
multiswipe_south_west = "show_frontlight_dialog",
|
|
|
|
multiswipe_west_south = "back",
|
|
|
|
multiswipe_west_south = "back",
|
|
|
|
multiswipe_north_south_north = "prev_chapter",
|
|
|
|
multiswipe_north_south_north = self.ges_mode == "gesture_reader" and "prev_chapter" or "nothing",
|
|
|
|
multiswipe_south_north_south = "next_chapter",
|
|
|
|
multiswipe_south_north_south = self.ges_mode == "gesture_reader" and "next_chapter" or "nothing",
|
|
|
|
multiswipe_west_east_west = "open_previous_document",
|
|
|
|
multiswipe_west_east_west = "open_previous_document",
|
|
|
|
multiswipe_east_north_west = "zoom_contentwidth",
|
|
|
|
multiswipe_east_north_west = self.ges_mode == "gesture_reader" and "zoom_contentwidth" or "nothing",
|
|
|
|
multiswipe_south_east_north = "zoom_contentheight",
|
|
|
|
multiswipe_south_east_north = self.ges_mode == "gesture_reader" and "zoom_contentheight" or "nothing",
|
|
|
|
multiswipe_east_north_west_east = "zoom_pagewidth",
|
|
|
|
multiswipe_east_north_west_east = self.ges_mode == "gesture_reader" and "zoom_pagewidth" or "nothing",
|
|
|
|
multiswipe_south_east_north_south = "zoom_pageheight",
|
|
|
|
multiswipe_south_east_north_south = self.ges_mode == "gesture_reader" and "zoom_pageheight" or "nothing",
|
|
|
|
multiswipe_east_south_west_north = "full_refresh",
|
|
|
|
multiswipe_east_south_west_north = "full_refresh",
|
|
|
|
}
|
|
|
|
}
|
|
|
|
local gm = G_reader_settings:readSetting(self.ges_mode)
|
|
|
|
local gm = G_reader_settings:readSetting(self.ges_mode)
|
|
|
|