hoaiduyit / react-pannellum

46 stars 38 forks source link

Duplicated render of .pnlm-render-container #92

Closed crsp-dev closed 2 years ago

crsp-dev commented 2 years ago

Instead of 1 .pnlm-render-container being render as child of .pnlm-container its rendered 2 of it. The problem is this will create another hotspot that stick to the screen even when i move the 360.

image

hoaiduyit commented 2 years ago

Hi @crsp-dev , can you make a detail step by step of this issue when it's happening.

crsp-dev commented 2 years ago

I'm using multires type. This issue will happen when the hotspot is on the screen area from the first load.

Like when I set the yaw, and pitch of the Scene for the first load and I put the Hotspot position around there. If I set the hotspot position behind the screen area from the first load this issue will not happen.

Also, I notice that this will happen when the config Autoload is set to true.

for now, I didn't set the hotspot on the first load, and using AddHotspot to the scene with a button click, only that way will work without setting the autoload to false. and will not generate a double render container.

crsp-dev commented 2 years ago

Ok i found that the problem is from the framework not from react-pannellum library. I'm using nextjs version 12, now i downgraded the version and it's works normal like it used to. Thank you very much.

hoaiduyit commented 2 years ago

Hi @crsp-dev , I'm happy when my package can be used in your project :)

karolkarolka commented 1 year ago

@hoaiduyit @crsp-dev did you guys maybe check how this SSR issue is related to the changes in Next v12?