[UX] Gesture manager: add two-finger swipe left and right (#4815)

Also add Device:hasMultitouch() to control whether the configuration menu is shown.

Cf. #4727.
This commit is contained in:
Frans de Jonge
2019-03-19 20:18:38 +01:00
committed by GitHub
parent 523be5e7d9
commit 728bb187fa
7 changed files with 49 additions and 34 deletions

View File

@@ -31,21 +31,6 @@ function ReaderToc:init()
doc = "show Table of Content menu" },
}
end
if Device:isTouchDevice() then
self.ges_events = {
ShowToc = {
GestureRange:new{
ges = "two_finger_swipe",
range = Geom:new{
x = 0, y = 0,
w = Screen:getWidth(),
h = Screen:getHeight(),
},
direction = "east"
}
},
}
end
self:resetToc()
self.ui.menu:registerToMainMenu(self)
end