Closed ankitskvmdam closed 7 months ago
This pull request is automatically built and testable in CodeSandbox.
To see build info of the built libraries, click here or the icon next to each commit SHA.
:tada: This PR is included in version 2.29.7 :tada:
The release is available on:
Your semantic-release bot :package::rocket:
Why
When connecting to the OrbitControl, we set
touchAction
to none, which prevents the user from scrolling the page and allows them to interact with the 3D scene. However, when we dispose of the OrbitControl, we don't re-enable thetouchAction
, which means the user is unable to scroll the page even after the OrbitControl is disabled or removed.There are situations where we want to allow users to interact with the scene when they click a button, but in other cases, we don't want them to interact, and instead, allow them to scroll the page. However, if we set the
touchAction
tonone
and don't re-enable it after disposing of the OrbitControl, the user will be unable to scroll the page at all.What
In
this.dispose
method, I settouchAction
toauto
Checklist