mirror of
https://github.com/koreader/koreader.git
synced 2025-08-10 00:52:38 +00:00
fix: avoid initializing readerfooter multiple times
This will create multiple autoRefreshTime function and crash the reader on exit
This commit is contained in:
@@ -19,6 +19,11 @@ function ReaderFlipping:init()
|
||||
dimen = Geom:new{w = Screen:getWidth(), h = widget:getSize().h},
|
||||
widget,
|
||||
}
|
||||
self:resetLayout()
|
||||
end
|
||||
|
||||
function ReaderFlipping:resetLayout()
|
||||
self[1].dimen.w = Screen:getWidth()
|
||||
if Device:isTouchDevice() then
|
||||
self.ges_events = {
|
||||
Tap = {
|
||||
|
||||
Reference in New Issue
Block a user