Bug Tracker

Opened 7 years ago

Last modified 7 years ago

#14741 closed feature

Handle Pointer Events — at Version 4

Reported by: Louis-Rémi Owned by:
Priority: low Milestone: 1.11.1/2.1.1
Component: event Version: 2.1.0
Keywords: Cc:
Blocked by: Blocking:

Description (last modified by lrbabe)

"Pointer Events unifies the web event model for touch, mouse, and pen input. It is designed to address concerns with the Touch Events spec."

This microsoft-proposed spec is already implemented in IE10 and IE11, patches are about to land in Firefox and work is underway in Chromium. More importantly, Microsoft is providing a polyfill that allows to use those events today in all major browsers.

jQuery lacks only minor modifications to be compatible with these events and their polyfill:

  • pageX, pageY and other mouseevent-related properties aren't passed on to the handler
  • event delegation doesn't work with pointerenter and pointerleave

To clarify: this ticket isn't about making those events available in all browsers jQuery supports. The aim is simply to improve the compatibility of jQuery with the browsers that implemet them and with the Hand.js polyfill.

PR: https://github.com/jquery/jquery/pull/1503

Compared to last run:

  • dist/jquery.js: raw +67 / gz +25
  • dist/jquery.min.js: raw +61 / gz +21

Change History (4)

comment:1 Changed 7 years ago by scottgonzalez

Resolution: plugin
Status: newclosed

Please don't send a PR to add this to core. If you'd like to help with this, you can send PRs to https://github.com/jquery/jquery-pointer-events which builds on top of Polymer.

We need to iterate outside of core's release cycle.

comment:2 Changed 7 years ago by lrbabe

Component: unfiledevent
Description: modified (diff)
Resolution: plugin
Status: closedreopened

comment:3 Changed 7 years ago by lrbabe

I've reopened the ticket with permission from DMethvin, see clarification in the ticket. PR: https://github.com/jquery/jquery/pull/1503

Last edited 7 years ago by lrbabe (previous) (diff)

comment:4 Changed 7 years ago by lrbabe

Description: modified (diff)
Note: See TracTickets for help on using tickets.