Closed zernonia closed 2 years ago
The unit is pixel so try something like [100, 100]
:)
Thanks for the swift response, unfortunatately seems like still not working. https://codesandbox.io/s/dark-hooks-ed5k19?file=/src/App.js
Also, I was confused by the playground's offsetX & offsetY, I thought the value should be relative from -1 to 1
It seems to work for me. However, the pixel values seem to be scaled to I had to use larger values than I was first expecting to get the desired results.
Based on doc, there's the offset options, but it doesn't seems to work.
Change offset x and y value. Globe stays the same position https://codesandbox.io/s/dark-hooks-ed5k19?file=/src/App.js