Changed pointer events to also include the event type