nerdyman / react-image-turntable

Display a set of images as a draggable 360 degree turntable.
https://githubbox.com/nerdyman/react-image-turntable/tree/main/example
MIT License
21 stars 1 forks source link

Local example build increments twice on `pointermove` and `keydown` #13

Closed nerdyman closed 2 years ago

nerdyman commented 2 years ago

The local example repo increments twice when dragging or using keyboard nav but the production build is fine.

Probably related to strict mode changes in React 18 https://reactjs.org/blog/2022/03/08/react-18-upgrade-guide.html#updates-to-strict-mode