diff --git a/frontend/ui/reader/readerfooter.lua b/frontend/ui/reader/readerfooter.lua index a808f8097..1a69c4ed5 100644 --- a/frontend/ui/reader/readerfooter.lua +++ b/frontend/ui/reader/readerfooter.lua @@ -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)