Canvas mouse event management.