Update the touch event proxying code to better represent mouse events.

Review Request #8932 — Created May 8, 2017 and submitted

Christian Hammond

$.fn.proxyTouchEvents() now simulates mouseover/mouseout events, better
helping to make touch events compatible with more pieces of UI (in
particular, for the purposes of this change, jQuery-UI's resizable
widget). It now keeps track of what elements the user has moved their
finger over in the calculation of the events.

Touch events are only proxied if using one finger. Gestures are left
alone so that the page or browser can handle them.

This does not yet implement the mouseenter/mouseleave events, though,
which are a bit more complicated to get right.

Tested with Review Board's comment dialog, which utilizes the resizable
widget. Saw that I was able to drag the handle around, verifying that the
mouseover/mouseout events were working.

  • 0
  • 0
  • 1
  • 0
  • 1
Description From Last Updated
Christian Hammond
David Trowbridge
  2. This variable is never defined.

    1. Huh, thought JSHint would have caught that.

    2. It has a hard time knowing what's defined in the closure or globally...

Christian Hammond
David Trowbridge
  1. Ship It!
Christian Hammond
Review request changed

Status: Closed (submitted)

Change Summary:

Pushed to release-0.9.x (2a21242)