(detail: GestureDetail)
| 39 | }; |
| 40 | |
| 41 | const canStart = (detail: GestureDetail) => { |
| 42 | /** |
| 43 | * The user's locale can change mid-session, |
| 44 | * so we need to check text direction at |
| 45 | * the beginning of every gesture. |
| 46 | */ |
| 47 | rtl = isRTL(el); |
| 48 | |
| 49 | return isAtEdge(detail) && canStartHandler(); |
| 50 | }; |
| 51 | |
| 52 | const onMove = (detail: GestureDetail) => { |
| 53 | // set the transition animation's progress |
no test coverage detected