Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Bug]: Unknown angle "NaN" #60

Open
1 task
gamebacon opened this issue Aug 15, 2024 · 2 comments
Open
1 task

[Bug]: Unknown angle "NaN" #60

gamebacon opened this issue Aug 15, 2024 · 2 comments
Assignees
Labels
bug Something isn't working

Comments

@gamebacon
Copy link

gamebacon commented Aug 15, 2024

What happened?

i was hiding the component

What should have happened?

the component should've been hidden

Code

import React from 'react'
import PropTypes from 'prop-types'
import { ReactPhotoSphereViewer } from 'react-photo-sphere-viewer'

const Image360Viewer = props => {
return (


<ReactPhotoSphereViewer
src={props.src}
width="100%"
height="100%"
navbar={[
'zoom',
'move',
'fullscreen',
]}
defaultYaw={Math.PI}
defaultPitch={0}
defaultZoomLvl={0}
autoplay
fisheye={true}
maxPov={0}
autorotateSpeed="2rpm"
panorama360
/>

)
}

Image360Viewer.propTypes = {
src: PropTypes.string.isRequired,
}

export default Image360Viewer

Sandbox Link

No response

Library Version

6.0.0

What operating system are you using?

macOS

What browser are you using?

Firefox

Logs

Uncaught runtime errors:
ERROR
Unknown angle "NaN"
_PSVError@http://localhost:3000/static/js/bundle.js:11384:5
parseAngle@http://localhost:3000/static/js/bundle.js:11600:11
cleanPosition@http://localhost:3000/static/js/bundle.js:15456:14
rotate@http://localhost:3000/static/js/bundle.js:17273:53
__applyMove@http://localhost:3000/static/js/bundle.js:16102:17
onTick@http://localhost:3000/static/js/bundle.js:15978:14
__run@http://localhost:3000/static/js/bundle.js:11690:20
./node_modules/@photo-sphere-viewer/core/index.module.js/__run/this.animationFrame<@http://localhost:3000/static/js/bundle.js:11691:68
FrameRequestCallback*__run@http://localhost:3000/static/js/bundle.js:11691:36
./node_modules/@photo-sphere-viewer/core/index.module.js/__run/this.animationFrame<@http://localhost:3000/static/js/bundle.js:11691:68
FrameRequestCallback*__run@http://localhost:3000/static/js/bundle.js:11691:36
./node_modules/@photo-sphere-viewer/core/index.module.js/__run/this.animationFrame<@http://localhost:3000/static/js/bundle.js:11691:68
FrameRequestCallback*__run@http://localhost:3000/static/js/bundle.js:11691:36
./node_modules/@photo-sphere-viewer/core/index.module.js/__run/this.animationFrame<@http://localhost:3000/static/js/bundle.js:11691:68
FrameRequestCallback*__run@http://localhost:3000/static/js/bundle.js:11691:36
./node_modules/@photo-sphere-viewer/core/index.module.js/__run/this.animationFrame<@http://localhost:3000/static/js/bundle.js:11691:68
FrameRequestCallback*__run@http://localhost:3000/static/js/bundle.js:11691:36
./node_modules/@photo-sphere-viewer/core/index.module.js/__run/this.animationFrame<@http://localhost:3000/static/js/bundle.js:11691:68
FrameRequestCallback*__run@http://localhost:3000/static/js/bundle.js:11691:36
./node_modules/@photo-sphere-viewer/core/index.module.js/__run/this.animationFrame<@http://localhost:3000/static/js/bundle.js:11691:68
FrameRequestCallback*__run@http://localhost:3000/static/js/bundle.js:11691:36
./node_modules/@photo-sphere-viewer/core/index.module.js/__run/this.animationFrame<@http://localhost:3000/static/js/bundle.js:11691:68
FrameRequestCallback*__run@http://localhost:3000/static/js/bundle.js:11691:36
./node_modules/@photo-sphere-viewer/core/index.module.js/__run/this.animationFrame<@http://localhost:3000/static/js/bundle.js:11691:68
FrameRequestCallback*__run@http://localhost:3000/static/js/bundle.js:11691:36
./node_modules/@photo-sphere-viewer/core/index.module.js/__run/this.animationFrame<@http://localhost:3000/static/js/bundle.js:11691:68
FrameRequestCallback*__run@http://localhost:3000/static/js/bundle.js:11691:36
./node_modules/@photo-sphere-viewer/core/index.module.js/__run/this.animationFrame<@http://localhost:3000/static/js/bundle.js:11691:68
FrameRequestCallback*__run@http://localhost:3000/static/js/bundle.js:11691:36
./node_modules/@photo-sphere-viewer/core/index.module.js/__run/this.animationFrame<@http://localhost:3000/static/js/bundle.js:11691:68
FrameRequestCallback*__run@http://localhost:3000/static/js/bundle.js:11691:36
./node_modules/@photo-sphere-viewer/core/index.module.js/__run/this.animationFrame<@http://localhost:3000/static/js/bundle.js:11691:68
FrameRequestCallback*__run@http://localhost:3000/static/js/bundle.js:11691:36
./node_modules/@photo-sphere-viewer/core/index.module.js/__run/this.animationFrame<@http://localhost:3000/static/js/bundle.js:11691:68
FrameRequestCallback*__run@http://localhost:3000/static/js/bundle.js:11691:36
./node_modules/@photo-sphere-viewer/core/index.module.js/__run/this.animationFrame<@http://localhost:3000/static/js/bundle.js:11691:68
FrameRequestCallback*__run@http://localhost:3000/static/js/bundle.js:11691:36
./node_modules/@photo-sphere-viewer/core/index.module.js/__run/this.animationFrame<@http://localhost:3000/static/js/bundle.js:11691:68
FrameRequestCallback*__run@http://localhost:3000/static/js/bundle.js:11691:36
./node_modules/@photo-sphere-viewer/core/index.module.js/__run/this.animationFrame<@http://localhost:3000/static/js/bundle.js:11691:68
FrameRequestCallback*__run@http://localhost:3000/static/js/bundle.js:11691:36
./node_modules/@photo-sphere-viewer/core/index.module.js/__run/this.animationFrame<@http://localhost:3000/static/js/bundle.js:11691:68
FrameRequestCallback*__run@http://localhost:3000/static/js/bundle.js:11691:36
./node_modules/@photo-sphere-viewer/core/index.module.js/__run/this.animationFrame<@http://localhost:3000/static/js/bundle.js:11691:68
FrameRequestCallback*__run@http://localhost:3000/static/js/bundle.js:11691:36
./node_modules/@photo-sphere-viewer/core/index.module.js/__run/this.animationFrame<@http://localhost:3000/static/js/bundle.js:11691:68
FrameRequestCallback*__run@http://localhost:3000/static/js/bundle.js:11691:36
./node_modules/@photo-sphere-viewer/core/index.module.js/__run/this.animationFrame<@http://localhost:3000/static/js/bundle.js:11691:68
FrameRequestCallback*__run@http://localhost:3000/static/js/bundle.js:11691:36
./node_modules/@photo-sphere-viewer/core/index.module.js/__run/this.animationFrame<@http://localhost:3000/static/js/bundle.js:11691:68
FrameRequestCallback*__run@http://localhost:3000/static/js/bundle.js:11691:36
./node_modules/@photo-sphere-viewer/core/index.module.js/__run/this.animationFrame<@http://localhost:3000/static/js/bundle.js:11691:68
FrameRequestCallback*__run@http://localhost:3000/static/js/bundle.js:11691:36
./node_modules/@photo-sphere-viewer/core/index.module.js/__run/this.animationFrame<@http://localhost:3000/static/js/bundle.js:11691:68
FrameRequestCallback*__run@http://localhost:3000/static/js/bundle.js:11691:36
./node_modules/@photo-sphere-viewer/core/index.module.js/__run/this.animationFrame<@http://localhost:3000/static/js/bundle.js:11691:68
FrameRequestCallback*__run@http://localhost:3000/static/js/bundle.js:11691:36
./node_modules/@photo-sphere-viewer/core/index.module.js/__run/this.animationFrame<@http://localhost:3000/static/js/bundle.js:11691:68
FrameRequestCallback*__run@http://localhost:3000/static/js/bundle.js:11691:36
./node_modules/@photo-sphere-viewer/core/index.module.js/__run/this.animationFrame<@http://localhost:3000/static/js/bundle.js:11691:68
FrameRequestCallback*__run@http://localhost:3000/static/js/bundle.js:11691:36
./node_modules/@photo-sphere-viewer/core/index.module.js/__run/this.animationFrame<@http://localhost:3000/static/js/bundle.js:11691:68
FrameRequestCallback*__run@http://localhost:3000/static/js/bundle.js:11691:36
./node_modules/@photo-sphere-viewer/core/index.module.js/__run/this.animationFrame<@http://localhost:3000/static/js/bundle.js:11691:68
FrameRequestCallback*__run@http://localhost:3000/static/js/bundle.js:11691:36
./node_modules/@photo-sphere-viewer/core/index.module.js/__run/this.animationFrame<@http://localhost:3000/static/js/bundle.js:11691:68

Interest to fix the bug

  • I would like to fix this bug!
@gamebacon gamebacon added the bug Something isn't working label Aug 15, 2024
@Elius94
Copy link
Owner

Elius94 commented Aug 21, 2024

Thanks for the issue 🙏
I'll check when I return home after summer holiday.
Have a nice day

@Elius94
Copy link
Owner

Elius94 commented Sep 3, 2024

Please, make me a sandbox, so I can easily help you

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants