(e: TouchEvent)
| 253 | touchStartY = e.touches[0]?.clientY ?? 0; |
| 254 | }; |
| 255 | const onTouchMove = (e: TouchEvent) => { |
| 256 | const y = e.touches[0]?.clientY ?? 0; |
| 257 | if (y > touchStartY + 12) { |
| 258 | userScrolledUpRef.current = true; |
| 259 | } |
| 260 | }; |
| 261 | |
| 262 | el.addEventListener("wheel", onWheel, { passive: true }); |
| 263 | el.addEventListener("touchstart", onTouchStart, { passive: true }); |
nothing calls this directly
no outgoing calls
no test coverage detected