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:
NiLuJe
2015-04-26 20:07:17 +02:00
parent 2fe8dc40d7
commit 50dbf6b581
19 changed files with 27 additions and 26 deletions

View File

@@ -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