Join GitHub today
GitHub is home to over 50 million developers working together to host and review code, manage projects, and build software together.
Sign upAdd support for touch events on Android #22229
Conversation
I missed that. Thanks. r=me. Do we need to wait for #22187 before merging though? |
|
I thought that was fixed? |
Currently on Android we treat all touch events as scroll events. Servo is already capable of distinguishing between scroll-touches and regular touch events (see `on_touch_move` in `components/compositor/touch.rs`), so we should just be passing touch events through. Servo however does not natively support fling gestures, so we continue to use `GestureDetector` for that.
|
@bors-servo r=paulrouget |
|
|
Add support for touch events on Android Currently on Android we treat all touch events as scroll events. Servo is already capable of distinguishing between scroll-touches and regular touch events (see `on_touch_move` in `components/compositor/touch.rs`), so we should just be passing touch events through. Servo however does not natively support fling gestures, so we continue to use `GestureDetector` for that. With this PR, the [Three.js cloth animation](https://threejs.org/examples/webgl_animation_cloth.html) can be panned around. r? @paulrouget <!-- Reviewable:start --> --- This change is [<img src="https://reviewable.io/review_button.svg" height="34" align="absmiddle" alt="Reviewable"/>](https://reviewable.io/reviews/servo/servo/22229) <!-- Reviewable:end -->
|
|
|
@bors-servo retry |
|
|
|
|
|
@bors-servo retry
|
Add support for touch events on Android Currently on Android we treat all touch events as scroll events. Servo is already capable of distinguishing between scroll-touches and regular touch events (see `on_touch_move` in `components/compositor/touch.rs`), so we should just be passing touch events through. Servo however does not natively support fling gestures, so we continue to use `GestureDetector` for that. With this PR, the [Three.js cloth animation](https://threejs.org/examples/webgl_animation_cloth.html) can be panned around. r? @paulrouget <!-- Reviewable:start --> --- This change is [<img src="https://reviewable.io/review_button.svg" height="34" align="absmiddle" alt="Reviewable"/>](https://reviewable.io/reviews/servo/servo/22229) <!-- Reviewable:end -->
|
|
|
|
Manishearth commentedNov 20, 2018
•
edited by SimonSapin
Currently on Android we treat all touch events as scroll events. Servo is already capable of distinguishing between scroll-touches and regular touch events (see
on_touch_moveincomponents/compositor/touch.rs), so we should just be passing touch events through.Servo however does not natively support fling gestures, so we continue to use
GestureDetectorfor that.With this PR, the Three.js cloth animation can be panned around.
r? @paulrouget
This change is