Moved mouse handling to AnimationManager