Jump to content
GreenSock

Search In
  • More options...
Find results that contain...
Find results in...
Farg

Problems with the current animation

Recommended Posts

hi, i have problem with tabs(hidden\visible) and miscalculation delta time when i back to my hidden tab, example:

i have some object near top my display, this object duration to bottom drop = 10ms, when i started animation i fast change tab in my browser and wait 5 sec for see my object at half display when i back to my hidden tab, BUT i see my object remained at top.

How i can decide this problem ? 

p.s. when i make tween i set useFrame:false, but this not helped for me

p.s.s. sorry for my engl :)

Link to post
Share on other sites

Hi Farg :)

 

Welcome to the GreenSock forum.

 

I think you're asking about a tween continuing to play even when the tab isn't active?

 

We've had a few discussions about that. Here are some links that might help:

 

https://greensock.com/forums/topic/10051-animations-pause-when-browser-tab-is-not-visible/

https://greensock.com/forums/topic/9059-cross-browser-to-detect-tab-or-window-is-active-so-animations-stay-in-sync-using-html5-visibility-api/

https://greensock.com/forums/topic/13567-non-stopping-tween-when-switched-tab-is-still-unresolved/

 

Hopefully that information helps.

 

Happy tweening.

:)

  • Like 1
Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

  • Recently Browsing   0 members

    No registered users viewing this page.

×