3
0
mirror of https://github.com/britzl/monarch.git synced 2025-09-27 18:12:22 +02:00

Wait with screen unload until next screen is loaded and ready to be shown (#74)

* Removed screen flicker when transitioning between screens

* Moved advanced example to subfolder. Added basic example.

* Remove flicker on back navigation too

* Fix issue with no_stack screens added at any time
This commit is contained in:
Björn Ritzl
2021-06-24 07:45:09 +02:00
committed by GitHub
parent 466b558e73
commit 20cf731fdb
4 changed files with 181 additions and 173 deletions

View File

@@ -1,5 +1,5 @@
function init(self)
local monarch = require "monarch.monarch"
local data = monarch.data(hash("screen_preload"))
data.count = data.count + 1
if data then data.count = data.count + 1 end
end