Repository navigation
Very basic touch events and touch scrolling - #7204
Conversation
|
Fixes #7036. |
|
If this PR is used for the upcoming demos, it also depends on servo/servoexperiments.com#2. |
268674c to
2422c60
Compare
|
2fa28a1 to
05e5a34
Compare
|
Dragging in the physics demo on a device doesn't seem to work. |
This is working for me, though it's a bit slower to react than desktop (I think partly because of how the page is "zoomed out" on mobile, so the physical speed of the particles is smaller). |
|
I'll retest this again today. Have you gotten the photo gallery slider to work on mobile? |
No. It's working in other mobile browsers, but not in Servo. Investigating... |
Fixed by adding in a missing |
|
☔ The latest upstream changes (presumably #7191) made this pull request unmergeable. Please resolve the merge conflicts. |
|
r? @glennw |
d984dbc to
cfa6830
Compare
|
Reviewed 6 of 10 files at r2. Comments from the review on Reviewable.io |
|
☔ The latest upstream changes (presumably #7500) made this pull request unmergeable. Please resolve the merge conflicts. |
|
Looks like dom/events/EventTarget-dispatchEvent.html might have new test results, too. |
|
☔ The latest upstream changes (presumably #8121) made this pull request unmergeable. Please resolve the merge conflicts. |
This is currently limited to simple single-touch actions. It does not include momentum scrolling or pinch zooming.
This is enabled by default on Android, because Glutin currently sends mouse events instead of touch events on Android. It's also useful for testing on non-touch platforms.
|
Modified interfaces.html, and added a new commit implementing Review status: 6 of 21 files reviewed at latest revision, all discussions resolved, some commit checks pending. Comments from the review on Reviewable.io |
|
@bors-servo: r+ Reviewed 9 of 10 files at r5. Comments from the review on Reviewable.io |
|
📌 Commit 316802e has been approved by |
|
@bors-servo retry force |
Very basic touch events and touch scrolling This implements just enough of [Touch Events](http://w3c.github.io/touch-events/) to enable scrolling on Android without regressing basic single-touch interaction like clicking on links. Dragging a page will scroll it, unless the page calls `preventDefault` on the "touchstart" event. Does **not** yet support pinch zooming or other multi-touch gestures or events. Includes a `-Z convert-mouse-to-touch` command line flag for testing on non-touch platforms. This is also enabled by default on Android because Glutin currently translates touch input to mouse events on Android. <!-- Reviewable:start --> [<img src="https://reviewable.io/review_button.png" height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/7204) <!-- Reviewable:end -->
|
☀️ Test successful - android, gonk, linux-dev, linux-rel, mac-dev-ref-unit, mac-rel-css, mac-rel-wpt |
This implements just enough of Touch Events to enable scrolling on Android without regressing basic single-touch interaction like clicking on links.
Dragging a page will scroll it, unless the page calls
preventDefaulton the "touchstart" event.Does not yet support pinch zooming or other multi-touch gestures or events.
Includes a
-Z convert-mouse-to-touchcommand line flag for testing on non-touch platforms. This is also enabled by default on Android because Glutin currently translates touch input to mouse events on Android.