mpetroff / pannellum

Pannellum is a lightweight, free, and open source panorama viewer for the web.
https://pannellum.org/
MIT License
4.3k stars 729 forks source link

Images not rotating after update. #489

Open Varin6 opened 7 years ago

Varin6 commented 7 years ago

Downloaded the latest version, added those js files (and css files in header):

<script src="js/pannellum.js"></script>
<script src="js/libpannellum.js"></script>

Now the image appears, but can't be rotated. When I use the CDN version, all works fine <script src="https://cdn.pannellum.org/2.3/pannellum.js"></script>

Note: If libpannellum.js is not added to the project, the plugin won't load pictures at all. It will be stuck on "Loading"

DanielBiegler commented 7 years ago
<script type="text/javascript" src="../js/libpannellum.js"></script>
<script type="text/javascript" src="../js/RequestAnimationFrame.js"></script>
<script type="text/javascript" src="../js/pannellum.js"></script>
<script type="text/javascript" src="standalone.js"></script>

Get used by the standalone version.

If you want to use it like with the CDN you have to build pannellum first. Check this folder for the build script:

<pannellum-root>/utils/build/build.*

Doing that will create the files like the one from the CDN. That one you can use.

mpetroff commented 7 years ago

What @DanielBiegler said is correct, although standalone.js is only for the standalone version and shouldn't be added when using the API.

Are there any errors displayed in your browser's developer console?

jpass commented 6 years ago

We had similiar problem.

@mpetroff First of all we think release 2.3.2 (zip) is not 2.3.2, it doesn't contain device orientation support (start/stopOrientation etc.)

We decided to build release ourselves, but then mouse grab to look around stopped working. Problem is in .pnlm-dragfix as it doesn't have z-index. Then You also need to add z-index to .pnlm-controls-container and hotspots.

mpetroff commented 6 years ago

@jpass The 2.3.2 release is 2.3.2. The startOrientation and stopOrientation functions are not currently in a stable release.