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

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

Information

Djblets
release-0.9.x
308deb8...

Reviewers

$.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.

    Loading...