(e)
| 160 | touchStartY = e.touches[0].clientY; |
| 161 | }; |
| 162 | const onTouchMove = (e) => { |
| 163 | if (touchStartY === null) return; |
| 164 | const dy = touchStartY - e.touches[0].clientY; |
| 165 | if (canScrollWithin(dy)) return; |
| 166 | e.preventDefault(); |
| 167 | if (Math.abs(dy) > 40) { |
| 168 | go(dy); |
| 169 | touchStartY = null; |
| 170 | } |
| 171 | }; |
| 172 | node.addEventListener("wheel", onWheel, {passive: false}); |
| 173 | node.addEventListener("touchstart", onTouchStart, {passive: true}); |
| 174 | node.addEventListener("touchmove", onTouchMove, {passive: false}); |
nothing calls this directly
no test coverage detected