mirror of
https://github.com/koreader/koreader.git
synced 2025-08-10 00:52:38 +00:00
ReaderHighlight: fix long-pressing on image (#14048)
This commit is contained in:
@@ -1678,15 +1678,13 @@ function ReaderHighlight:onHold(arg, ges)
|
||||
local image = self.ui.document:getImageFromPosition(self.hold_pos, true, true)
|
||||
if image then
|
||||
logger.dbg("hold on image")
|
||||
self.hold_pos = nil
|
||||
local ImageViewer = require("ui/widget/imageviewer")
|
||||
local imgviewer = ImageViewer:new{
|
||||
UIManager:show(ImageViewer:new{
|
||||
image = image,
|
||||
-- title_text = _("Document embedded image"),
|
||||
-- No title, more room for image
|
||||
with_title_bar = false,
|
||||
with_title_bar = false, -- more room for image
|
||||
fullscreen = true,
|
||||
}
|
||||
UIManager:show(imgviewer)
|
||||
})
|
||||
self:onStopHighlightIndicator()
|
||||
return true
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user