Fix: Unable to hold top right corner in FileManager (#5248)

Close: #5247
This commit is contained in:
Robert authored and Frans de Jonge committed 2019-08-23 19:48:55 +02:00
1 parent 182e981f4d
commit dc6d4085ea
2 files changed
+2 -1

No files matched your search

@@ -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{
+1 -1
View File
@@ -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