Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[UX] Gesture manager: corner gestures #4878

merged 20 commits into from Apr 7, 2019
Changes from 1 commit
File filter...
Filter file types
Jump to…
Jump to file or symbol
Failed to load files and symbols.


Just for now

add ignore action (it's different from nothing since it doesn't gobbl…

…e up the event)
  • Loading branch information...
Frenzie committed Apr 6, 2019
commit 845ba7161210008dd8e3228a531c3c9fe31e9769
@@ -18,6 +18,7 @@ local ReaderGesture = InputContainer:new{}

local action_strings = {
nothing = _("Nothing"),
ignore = _("Ignore"),

page_jmp_back_10 = _("Back 10 pages"),
page_jmp_back_1 = _("Previous page"),
@@ -417,6 +418,7 @@ function ReaderGesture:buildMenu(ges, default)
local gesture_manager = G_reader_settings:readSetting(self.ges_mode)
local menu = {
{"nothing", true },
{"ignore", true, true },
{"page_jmp_back_10", not self.is_docless},
{"page_jmp_back_1", not self.is_docless},
{"page_jmp_fwd_10", not self.is_docless},
@@ -825,7 +827,9 @@ function ReaderGesture:registerGesture(ges, action, ges_type, zone, overrides, d

function ReaderGesture:gestureAction(action, ges)
if action == "reading_progress" and ReaderGesture.getReaderProgress then
if action == "ignore" then
elseif action == "reading_progress" and ReaderGesture.getReaderProgress then
elseif action == "toc" then
ProTip! Use n and p to navigate between commits in a pull request.
You can’t perform that action at this time.