flimshaw / Valiant360

An in-browser 360 degree panorama video player.
http://flimshaw.github.io/Valiant360/
MIT License
777 stars 151 forks source link

Change navigation in panorama #6

Closed neuhaus closed 10 years ago

neuhaus commented 10 years ago

Could you change the navigation inside the panorama so that the image or movie is only rotated as long as the mouse button is pressed?

That's the way everyone else (theta360.com, Google photospheres on G+, Google Streetview, Microsoft Photosynth ...) seems to be doing it. Some also have a little bit of slow auto-rotate on-load.

neuhaus commented 10 years ago

To be exact: The image rotates as long as a) the mouse button was initially pressed while located inside the image area b) the mouse button has not yet been released (even if it leaves the image area).

I think most viewers hide the mouse button while it is pressed.

flimshaw commented 10 years ago

Hey there,

You should be able to do this already by setting the clickAndDrag option to true in your video creation code. There's a full example in the README file, let me know if it's not working or not clear!

neuhaus commented 10 years ago

I missed that in the README, thanks