From 6dcdc936712380b33928becd5403186a000073ca Mon Sep 17 00:00:00 2001 From: Matt Perry Date: Thu, 16 May 2024 19:22:45 +0200 Subject: [PATCH] Updating --- dev/examples/useSpring.tsx | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/dev/examples/useSpring.tsx b/dev/examples/useSpring.tsx index f28e2d9133..963b67b5e0 100644 --- a/dev/examples/useSpring.tsx +++ b/dev/examples/useSpring.tsx @@ -82,10 +82,8 @@ function MouseEventExample() { ({ clientX, clientY }: MouseEvent) => { const element = ref.current! - // frame.update(() => { x.set(clientX - element.offsetLeft - element.offsetWidth / 2) - // y.set(clientY - element.offsetTop - element.offsetHeight / 2) - // }) + y.set(clientY - element.offsetTop - element.offsetHeight / 2) } )