mirror of
https://github.com/koreader/koreader.git
synced 2025-08-10 00:52:38 +00:00
Switch a few widgets to ui refresh modes
More closely matches native behavior on REAGL devices. Closing those widgets should still trigger a partial refresh though, because we usually get back to the reader, and text, so we want REAGL ;).
This commit is contained in:
@@ -168,14 +168,14 @@ function Button:onTapSelectButton()
|
||||
UIManager:scheduleIn(0.0, function()
|
||||
self[1].invert = true
|
||||
UIManager:setDirty(self.show_parent, function()
|
||||
return "partial", self[1].dimen
|
||||
return "ui", self[1].dimen
|
||||
end)
|
||||
end)
|
||||
UIManager:scheduleIn(0.1, function()
|
||||
self.callback()
|
||||
self[1].invert = false
|
||||
UIManager:setDirty(self.show_parent, function()
|
||||
return "partial", self[1].dimen
|
||||
return "ui", self[1].dimen
|
||||
end)
|
||||
end)
|
||||
elseif self.tap_input then
|
||||
|
||||
Reference in New Issue
Block a user