Elius94 / react-photo-sphere-viewer

Photosphere Viewer for React.JS
MIT License
65 stars 21 forks source link

little planet initialize zoom #17

Closed JuJinHyeong closed 1 year ago

JuJinHyeong commented 1 year ago

Hello. Thank you for providing such a good module.

I'm using the littleplanet props, but if I don't click it when I start, I can't zoom in with scroll or initialize it. Maybe it's meant to be?

  <ReactPhotoSphereViewer
    ref={pSRef}
    src={img}
    height={'100vh'}
    width={'100%'}
    onClick={handleClick}
    onReady={handleReady}
    plugins={plugins}
    defaultZoomLvl={50}
    container={''}
    littlePlanet
    minFov={-100}
    maxFov={50}
    defaultPitch={0}
  />
Elius94 commented 1 year ago

Hi! I'll check better when I'll be home, now I'm in holiday! Can you explain your trouble better? maybe with a video screenshot? But if you see in the code, using littleplanet prop, you can't set minFov and maxFov. Thank you

JuJinHyeong commented 1 year ago

happy new year! thank you for checking! and sorry for my bad english.

i start react app i can see little planet view. but when i move my mouse wheel, there is no action(zoom in/out) in scene. and when i click scene, zoom in and start auto scroll. then i can zoom in/out properly.

thank you for answer set minFov and maxFov.

Honeycam 2023-01-02 20-59-50

JuJinHyeong commented 1 year ago

oh! i found it. click means little planet mode off.

i think fisheye option is my goal.

thank you for answer!

Elius94 commented 1 year ago

Nice! Thank you