mirror of
https://github.com/koreader/koreader.git
synced 2025-08-10 00:52:38 +00:00
Fix: Unable to hold top right corner in FileManager (#5248)
Close: #5247
This commit is contained in:
@@ -104,6 +104,7 @@ function FileManager:init()
|
||||
padding_right = Size.padding.large,
|
||||
padding_bottom = 0,
|
||||
callback = nil, -- top right corner callback handled by gesture manager
|
||||
hold_callback = nil, -- top right corner hold_callback handled by gesture manager
|
||||
}
|
||||
|
||||
self.path_text = TextWidget:new{
|
||||
|
||||
@@ -122,7 +122,7 @@ function IconButton:onHoldIconButton()
|
||||
self:onInput(self.hold_input)
|
||||
elseif type(self.hold_input_func) == "function" then
|
||||
self:onInput(self.hold_input_func())
|
||||
end
|
||||
elseif self.hold_callback == nil then return end
|
||||
return true
|
||||
end
|
||||
|
||||
|
||||
Reference in New Issue
Block a user