mirror of
https://github.com/EsotericSoftware/spine-runtimes.git
synced 2026-02-13 10:38:46 +08:00
[webgl] Added visibility check to demo mainloop.
This commit is contained in:
parent
705a523949
commit
cb9e025390
@ -19,6 +19,8 @@ var spineDemos = {
|
||||
var demo = demos[i];
|
||||
var canvas = demo.canvas;
|
||||
|
||||
checkElementVisible(demo);
|
||||
|
||||
if (!spineDemos.assetManager.isLoadingComplete(demo.DEMO_NAME)) {
|
||||
if (demo.visible) {
|
||||
if (canvas.parentElement != demo.placeholder) {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user