[BUG #7977] added workaround for missing animationEnd event