Repository navigation
Commit f5c2930
committed
fix(core): a finger is sampled from one channel
The browser reports a finger on both pointer and touch events, and the
host fed both, dropping the second copy of a move only when its time and
position matched. WebKit delivers the pair 1 ms apart, so the copy entered
as a sample without movement and corrupted the release velocity (a steady
600 px/s drag read 125 in one run). A finger whose pointerdown paired with
its touchstart is now sampled from its pointer events alone; touch events
sample only a finger no pointer event reported, and keep their control
duties (cancelling, claiming, the browser's takeover). No clock comparison:
the copy never reaches the tracker, at any spacing.1 parent b7dd883 commit f5c2930
3 files changed
Lines changed: 127 additions & 11 deletions
File tree
- .changeset
- packages/core/src/gestures
- __tests__
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2 | 2 | | |
3 | 3 | | |
4 | 4 | | |
5 | | - | |
| 5 | + | |
6 | 6 | | |
7 | 7 | | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
297 | 297 | | |
298 | 298 | | |
299 | 299 | | |
300 | | - | |
| 300 | + | |
301 | 301 | | |
| 302 | + | |
| 303 | + | |
| 304 | + | |
| 305 | + | |
| 306 | + | |
| 307 | + | |
| 308 | + | |
| 309 | + | |
| 310 | + | |
| 311 | + | |
302 | 312 | | |
303 | 313 | | |
304 | 314 | | |
| |||
975 | 985 | | |
976 | 986 | | |
977 | 987 | | |
978 | | - | |
| 988 | + | |
| 989 | + | |
979 | 990 | | |
980 | 991 | | |
981 | 992 | | |
| |||
1295 | 1306 | | |
1296 | 1307 | | |
1297 | 1308 | | |
| 1309 | + | |
1298 | 1310 | | |
1299 | 1311 | | |
1300 | 1312 | | |
| |||
1306 | 1318 | | |
1307 | 1319 | | |
1308 | 1320 | | |
| 1321 | + | |
1309 | 1322 | | |
1310 | 1323 | | |
1311 | 1324 | | |
1312 | 1325 | | |
1313 | 1326 | | |
1314 | 1327 | | |
1315 | | - | |
| 1328 | + | |
1316 | 1329 | | |
1317 | 1330 | | |
1318 | 1331 | | |
1319 | | - | |
1320 | | - | |
1321 | | - | |
1322 | | - | |
1323 | | - | |
1324 | | - | |
1325 | | - | |
| 1332 | + | |
1326 | 1333 | | |
1327 | 1334 | | |
1328 | 1335 | | |
| |||
1337 | 1344 | | |
1338 | 1345 | | |
1339 | 1346 | | |
| 1347 | + | |
1340 | 1348 | | |
1341 | 1349 | | |
1342 | 1350 | | |
| |||
1749 | 1757 | | |
1750 | 1758 | | |
1751 | 1759 | | |
| 1760 | + | |
1752 | 1761 | | |
1753 | 1762 | | |
1754 | 1763 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
19 | 19 | | |
20 | 20 | | |
21 | 21 | | |
| 22 | + | |
22 | 23 | | |
23 | 24 | | |
24 | 25 | | |
| |||
322 | 323 | | |
323 | 324 | | |
324 | 325 | | |
| 326 | + | |
| 327 | + | |
| 328 | + | |
| 329 | + | |
| 330 | + | |
| 331 | + | |
| 332 | + | |
| 333 | + | |
| 334 | + | |
| 335 | + | |
| 336 | + | |
| 337 | + | |
| 338 | + | |
| 339 | + | |
| 340 | + | |
| 341 | + | |
| 342 | + | |
| 343 | + | |
| 344 | + | |
| 345 | + | |
| 346 | + | |
| 347 | + | |
| 348 | + | |
| 349 | + | |
| 350 | + | |
| 351 | + | |
| 352 | + | |
| 353 | + | |
| 354 | + | |
| 355 | + | |
| 356 | + | |
| 357 | + | |
| 358 | + | |
| 359 | + | |
| 360 | + | |
| 361 | + | |
| 362 | + | |
| 363 | + | |
| 364 | + | |
| 365 | + | |
| 366 | + | |
| 367 | + | |
| 368 | + | |
| 369 | + | |
| 370 | + | |
| 371 | + | |
| 372 | + | |
| 373 | + | |
| 374 | + | |
| 375 | + | |
| 376 | + | |
| 377 | + | |
| 378 | + | |
| 379 | + | |
| 380 | + | |
| 381 | + | |
| 382 | + | |
| 383 | + | |
| 384 | + | |
| 385 | + | |
| 386 | + | |
| 387 | + | |
| 388 | + | |
| 389 | + | |
| 390 | + | |
| 391 | + | |
| 392 | + | |
| 393 | + | |
| 394 | + | |
| 395 | + | |
| 396 | + | |
| 397 | + | |
| 398 | + | |
| 399 | + | |
| 400 | + | |
| 401 | + | |
| 402 | + | |
| 403 | + | |
| 404 | + | |
| 405 | + | |
| 406 | + | |
| 407 | + | |
| 408 | + | |
| 409 | + | |
| 410 | + | |
| 411 | + | |
| 412 | + | |
| 413 | + | |
| 414 | + | |
| 415 | + | |
| 416 | + | |
| 417 | + | |
| 418 | + | |
| 419 | + | |
| 420 | + | |
| 421 | + | |
| 422 | + | |
| 423 | + | |
| 424 | + | |
| 425 | + | |
| 426 | + | |
| 427 | + | |
| 428 | + | |
| 429 | + | |
| 430 | + | |
| 431 | + | |
325 | 432 | | |
326 | 433 | | |
327 | 434 | | |
| |||
0 commit comments