Tracking Mouse and Touch Events on Canvas