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:
Bi Fuguo 2025-03-29 22:32:50 +08:00 committed by GitHub
parent 987716ca4b
commit fa6463dc1b
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -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 => {