Load first render on init
will probably have to change in future when the code is loaded async too ok for now.
This commit is contained in:
@@ -51,6 +51,7 @@ function Controls({ onCameraChange }) {
|
||||
controls.current.addEventListener('end', dragCallback)
|
||||
controls.current.addEventListener('start', dragStart)
|
||||
const oldCurrent = controls.current
|
||||
dragCallback()
|
||||
return () => {
|
||||
oldCurrent.removeEventListener('end', dragCallback)
|
||||
oldCurrent.removeEventListener('start', dragStart)
|
||||
|
||||
Reference in New Issue
Block a user