mirror of
https://github.com/koreader/koreader
synced 2024-10-31 21:20:20 +00:00
a6609119ec
Since hinting is of little use in these situations.
19 lines
393 B
Lua
19 lines
393 B
Lua
|
|
ReaderHinting = EventListener:new{
|
|
hinting_states = {}
|
|
}
|
|
|
|
function ReaderHinting:onSetHinting(hinting)
|
|
self.view.hinting = hinting
|
|
end
|
|
|
|
function ReaderHinting:onDisableHinting()
|
|
table.insert(self.hinting_states, self.view.hinting)
|
|
self.view.hinting = false
|
|
return true
|
|
end
|
|
|
|
function ReaderHinting:onRestoreHinting()
|
|
self.view.hinting = table.remove(self.hinting_states)
|
|
return true
|
|
end |