Fix animation tracking events and window resizing with animation