fix(ngAnimate): do not trigger animations if the document is hidden
Prior to this fix, ngAnimate would always trigger animations even if the browser tab or browser window was not visible. This would cause issues with class updates / DOM operations even if elements were not using animations. The root cause is that browsers do not flush calls to requestAnimationFrame when browser windows / tabs are not visible. This fix disables animations if `document.hidden` is `true`. Closes #12842 Closes #13776
M
Matias Niemelä committed
a3a7afd3aa70d981b0210088df53fa2cf68d3a3d
Parent: 20bc37f
Committed by Martin Staffa <mjstaffa@googlemail.com>
on 1/17/2016, 7:00:41 PM