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

Function onPointerOver

packages/shared/src/features/patchy/patchyIdle.ts:161–173  ·  view source on GitHub ↗
(event: PointerEvent)

Source from the content-addressed store, hash-verified

159 // He glances at the post you hover.
160 let lastGlanceAt = 0;
161 const onPointerOver = (event: PointerEvent) => {
162 const target = event.target as Element | null;
163 if (
164 prefersReducedMotion ||
165 isBusy ||
166 Date.now() - lastGlanceAt < GLANCE_THROTTLE_MS ||
167 !target?.closest?.('article')
168 ) {
169 return;
170 }
171 lastGlanceAt = Date.now();
172 play('glance');
173 };
174 document.addEventListener('pointerover', onPointerOver, { passive: true });
175
176 return () => {

Callers

nothing calls this directly

Calls 2

nowMethod · 0.80
playFunction · 0.70

Tested by

no test coverage detected