hoaiduyit / react-pannellum

46 stars 38 forks source link

webkitRequestFullscreen is not working on mobile devices #96

Open reshmit3 opened 2 years ago

reshmit3 commented 2 years ago

https://github.com/hoaiduyit/react-pannellum/blob/18e7079e217c267fe9035f2e6d981c84f2e2c3a1/src/libs/pannellum.js#L2399

toggleFullscreen() is not working on a mobile device

TypeError: container.webkitRequestFullScreen is not a function. (In 'container.webkitRequestFullScreen()', 'container.webkitRequestFullScreen' is undefined)

hoaiduyit commented 2 years ago

hi @reshmit3 , I will resolve this asap

idragutinovicgd commented 2 years ago

Hi @hoaiduyit

Are there any updates regarding this fix? Is it going to be resolved any time soon?

reshmit3 commented 2 years ago

Hi, Do we have any updates on this?

unbelievableflavour commented 2 years ago

The function name is actually webkitRequestFullscreen instead of webkitRequestFullScreen. So changing that might be enough to fix this issue.