LockScrolling false doesn't disable the scroll lock
When I pass to Cube the prop lockScrolling={false} the behaviour is same as lockScrolling={true}
Hey! I had the same issue. I looked into the source code and found the problem at:
line 82 in Cube.tsx: useScrollLock(animating || lockScrolling);
It seems like animating in the (animating || lockScrolling)-expression stays 'true' even when nothing is animating.
I managed to do a dirty fix by applying this change in \node_modules\react-cube-navigation\esm\Cube.js:
useScrollLock(animating || lockScrolling); to useScrollLock(lockScrolling);, Run npm i to apply the changes.
I have not analysed the code deep enough to understand the animation-logic but further work should be done to make the animating-variable hold the correct boolean when nothing is animating!
@siavashhanifi 's change works but it causes unwanted scrolls while swiping the cube.