MCPcopy Create free account
hub / github.com/Alphanimble/htmlstream / onWheel

Function onWheel

demo/App.tsx:247–251  ·  view source on GitHub ↗
(e: WheelEvent)

Source from the content-addressed store, hash-verified

245 let touchStartY = 0;
246
247 const onWheel = (e: WheelEvent) => {
248 if (e.deltaY < 0) {
249 userScrolledUpRef.current = true;
250 }
251 };
252 const onTouchStart = (e: TouchEvent) => {
253 touchStartY = e.touches[0]?.clientY ?? 0;
254 };

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected