Updated so that touch and mouse events trigger pointer events (required for consistent use across all browsers)