Update the touch event proxying code to better represent mouse events.
Review Request #8932 — Created May 8, 2017 and submitted
$.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'sresizable
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.
Description | From | Last Updated |
---|---|---|
This variable is never defined. |
david |
- Change Summary:
-
Updated to ignore multi-finger events.
- Description:
-
$.fn.proxyTouchEvents()
now simulates mouseover/mouseout events, betterhelping 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. - Commit:
-
844c2a2f4c1485045882b19342e04e1cdf9343892f37c7815232b270f4985686a710295c6e853032
- Diff:
-
Revision 2 (+53 -21)
Checks run (2 succeeded)
- Change Summary:
-
Fixed an undeclared variable.
- Commit:
-
2f37c7815232b270f4985686a710295c6e853032308deb88efcf036c954e55e8b7a14a8a6b1c84b4
- Diff:
-
Revision 3 (+54 -21)