MCPcopy Create free account
hub / github.com/Effect-TS/effect / pointed

Function pointed

examples/ui/native/src/App.ts:282–289  ·  view source on GitHub ↗
(event: string)

Source from the content-addressed store, hash-verified

280 const list = h.id("list")
281 const scrolled = Animation.scroll(list, "y")
282 const pointed = (event: string) => (p: Native.ClickPayload) =>
283 Message.Pointed({
284 pointer: p.pointerId === undefined
285 ? `${event} without a pointer`
286 : `${p.pointerType} ${event} at ${Math.round(p.x)}, ${
287 Math.round(p.y)
288 }`
289 })
290 const screen = h.view
291 .style({
292 flex: 1,

Callers 1

App.tsFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected