michaelvillar / dynamics.js

Javascript library to create physics-based animations
http://dynamicsjs.com
7.57k stars 414 forks source link

Older browsers `document.visibilityState` #33

Open Saartje87 opened 8 years ago

Saartje87 commented 8 years ago

For example Android 4.4 doesn't supports document.visibilityState without the webkit prefix, creating an animation with a delay will never be triggered on these devices because isDocumentVisible will not return false. Is it an idea to check for 'visibilityState' in document and then return the document visibility or true for older browsers?

michaelvillar commented 8 years ago

Yep can probably do that!