Fix infinite animation iterations inside a group by shortcutting time
fraction calculation.
Merge pull request #613 from shans/fixInfiniteIterations

Fix infinite animation iterations inside a group by shortcutting time