MCPcopy Create free account
hub / github.com/dailydotdev/apps / scroll

Function scroll

packages/shared/src/features/boost/BoostManager.tsx:197–201  ·  view source on GitHub ↗
(direction: 1 | -1)

Source from the content-addressed store, hash-verified

195 }, []);
196
197 const scroll = (direction: 1 | -1) =>
198 rowRef.current?.scrollBy({
199 left: direction * rowRef.current.clientWidth * 0.8,
200 behavior: 'smooth',
201 });
202
203 return (
204 <div className="relative">

Callers 2

MetricsRowFunction · 0.70
useRailAutoAdvanceFunction · 0.50

Calls

no outgoing calls

Tested by

no test coverage detected