Introduced mouse handling in animation sample