gabdab Posted March 15, 2014 Share Posted March 15, 2014 Changing window (loosing focus) unvalidate the pause condition on tween , starting it allover .Check the tween pause phaser example changing window or tab and going back to pause tween example window .. it restarts .How to solve this ?(on Chrome) Link to comment Share on other sites More sharing options...
gabdab Posted March 17, 2014 Author Share Posted March 17, 2014 I found a solution on this page : http://forums.greensock.com/topic/9059-cross-browser-to-detect-tab-or-window-is-active-so-animations-stay-in-sync-using-html5-visibility-api/ Though I had to set my condition on both window blur and focus events to effectively keep tween paused between tab or window switchings .. Link to comment Share on other sites More sharing options...
Recommended Posts