Commit 69f02eb
committed
Don't interpret double-pan as double-tap.
Firstly, the last-touched-time was being set on touchend, even if a pan
gesture had occurred. This caused a pan quickly followed by a single tap
to be interpreted as a double-tap. In this fix, the time is only set on
touchstart.
Secondly, the time is cleared on touchmove, so that a pan gesture
cancels double-tap detection.1 parent c5d230d commit 69f02eb
3 files changed
Lines changed: 20 additions & 14 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
4869 | 4869 | | |
4870 | 4870 | | |
4871 | 4871 | | |
4872 | | - | |
4873 | | - | |
4874 | | - | |
4875 | | - | |
4876 | | - | |
| 4872 | + | |
| 4873 | + | |
| 4874 | + | |
| 4875 | + | |
| 4876 | + | |
| 4877 | + | |
| 4878 | + | |
| 4879 | + | |
4877 | 4880 | | |
4878 | | - | |
4879 | 4881 | | |
4880 | 4882 | | |
4881 | 4883 | | |
| |||
4889 | 4891 | | |
4890 | 4892 | | |
4891 | 4893 | | |
| 4894 | + | |
4892 | 4895 | | |
4893 | 4896 | | |
4894 | 4897 | | |
| |||
0 commit comments