JavaScript animation engine
Update anime.running reference when clearing array on visibilitychange event
Chris Brownfce16371e3f8
diff --git a/src/index.js b/src/index.jsindex 7caf091c..5bc3a484 100644--- a/src/index.js+++ b/src/index.js@@ -890,7 +890,7 @@ function handleVisibilityChange() {if (document.hidden) {activeInstances.forEach(ins => ins.pause());pausedInstances = activeInstances.slice(0);- activeInstances = [];+ anime.running = activeInstances = [];} else {pausedInstances.forEach(ins => ins.play());}