mirror of
https://github.com/koreader/koreader
synced 2024-10-31 21:20:20 +00:00
hold progress bar to show goto dialog
This commit is contained in:
parent
f21d34f682
commit
0b2cc17b69
@ -72,6 +72,12 @@ function ReaderFooter:init()
|
||||
range = self[1]:contentRange(),
|
||||
},
|
||||
},
|
||||
HoldFooter = {
|
||||
GestureRange:new{
|
||||
ges = "hold",
|
||||
range = self[1]:contentRange(),
|
||||
},
|
||||
},
|
||||
}
|
||||
end
|
||||
end
|
||||
@ -131,6 +137,11 @@ function ReaderFooter:onTapFooter(arg, ges)
|
||||
end
|
||||
end
|
||||
|
||||
function ReaderFooter:onHoldFooter(arg, ges)
|
||||
self.ui:handleEvent(Event:new("ShowGotoDialog"))
|
||||
return true
|
||||
end
|
||||
|
||||
function ReaderFooter:onSetStatusLine(status_line)
|
||||
self.view.footer_visible = status_line == 1 and true or false
|
||||
self.ui.document:setStatusLineProp(status_line)
|
||||
|
Loading…
Reference in New Issue
Block a user