mirror of
https://github.com/koreader/koreader.git
synced 2025-08-10 00:52:38 +00:00
add go back button to touchmenu
This commit is contained in:
@@ -40,11 +40,12 @@ end
|
||||
function IconButton:onTapClickButton()
|
||||
self.image.invert = true
|
||||
UIManager:setDirty(self.parent, "partial")
|
||||
UIManager:scheduleIn(0.5, function()
|
||||
-- make sure button reacts before doing callback
|
||||
UIManager:scheduleIn(0.1, function()
|
||||
self.callback()
|
||||
self.image.invert = false
|
||||
UIManager:setDirty(self.parent, "partial")
|
||||
end)
|
||||
self.callback()
|
||||
return true
|
||||
end
|
||||
|
||||
|
||||
Reference in New Issue
Block a user