closed #5160: Dispatch a custom event after an animation frame is displayed