Fixes issue with tabs out of focus for animation