hold progress bar to show goto dialog

pull/506/head
chrox 10 years ago
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…
Cancel
Save