Skip to content

Commit

Permalink
Updating
Browse files Browse the repository at this point in the history
  • Loading branch information
mattgperry committed May 16, 2024
1 parent 25c59ed commit 6dcdc93
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions dev/examples/useSpring.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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)
}
)

Expand Down

0 comments on commit 6dcdc93

Please sign in to comment.