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

Function onPointerOver

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

Source from the content-addressed store, hash-verified

169 // He glances at the post you hover.
170 let lastGlanceAt = 0;
171 const onPointerOver = (event: PointerEvent) => {
172 const target = event.target as Element | null;
173 if (
174 prefersReducedMotion ||
175 isBusy ||
176 Date.now() - lastGlanceAt < GLANCE_THROTTLE_MS ||
177 !target?.closest?.('article')
178 ) {
179 return;
180 }
181 lastGlanceAt = Date.now();
182 play('glance');
183 };
184 document.addEventListener('pointerover', onPointerOver, { passive: true });
185
186 return () => {

Callers

nothing calls this directly

Calls 2

nowMethod · 0.80
playFunction · 0.70

Tested by

no test coverage detected