[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

@@ -29,21 +29,6 @@ function ReaderBookmark:init()
doc = "show bookmarks" },
}
end
if Device:isTouchDevice() then
self.ges_events = {
ShowBookmark = {
GestureRange:new{
ges = "two_finger_swipe",
range = Geom:new{
x = 0, y = 0,
w = Screen:getWidth(),
h = Screen:getHeight(),
},
direction = "west"
}
},
}
end
self.ui.menu:registerToMainMenu(self)
end