mirror of
https://github.com/servo/servo.git
synced 2025-06-06 08:35:43 +00:00
Fixed an incorrect touchmove event triggered when the second finger is pressed. (#36218)
Signed-off-by: kongbai1996 <1782765876@qq.com>
This commit is contained in:
parent
987716ca4b
commit
fa6463dc1b
1 changed files with 1 additions and 4 deletions
|
@ -329,10 +329,7 @@ impl TouchHandler {
|
|||
.active_touch_points
|
||||
.push(TouchPoint::new(id, point));
|
||||
match touch_sequence.active_touch_points.len() {
|
||||
2 => {
|
||||
touch_sequence.state = Pinching;
|
||||
},
|
||||
3.. => {
|
||||
2.. => {
|
||||
touch_sequence.state = MultiTouch;
|
||||
},
|
||||
0..2 => {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue