mirror of
https://github.com/koreader/koreader
synced 2024-10-31 21:20:20 +00:00
1bd8dfcee1
By tapping on the upper left corner of the reader one can toggling flipping mode on/off. In flipping mode swiping right/down and left/up will paging backward and forward accordingly with pages proportional to swiping distance.
16 lines
384 B
Lua
16 lines
384 B
Lua
|
|
ReaderFlipping = LeftContainer:new{}
|
|
|
|
function ReaderFlipping:init()
|
|
local widget = ImageWidget:new{
|
|
file = "resources/icons/appbar.book.open.png",
|
|
}
|
|
local icon_size = widget:getSize()
|
|
self.dimen = Geom:new{w = Screen:getWidth(), h = icon_size.h}
|
|
self[1] = widget
|
|
end
|
|
|
|
function ReaderFlipping:onSetDogearVisibility(visible)
|
|
self.view.dogear_visible = visible
|
|
return true
|
|
end |