mpetroff / pannellum

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

Speed option for mouse dragging and arrow key control when rotating the image #159

Open Ericzhiluo opened 8 years ago

Ericzhiluo commented 8 years ago

The mouse dragging and arrow key control for rotating the panorama image is pretty slow for me. Is there any way I can speed up the rotation speed?

mpetroff commented 8 years ago

The rotation speed isn't configurable.

jannecederberg commented 8 years ago

This was at least partially addressed in https://github.com/mpetroff/pannellum/pull/163 by making touchmove work roughly at finger-move speed at all zoom-levels. Could you https://github.com/Ericzhiluo pull the changes from master and see if you feel your request has been addressed?

jannecederberg commented 8 years ago

@Ericzhiluo

jonathanrbowman commented 6 years ago

Thanks for doing the heavy lifting, getting the drag to be snappy!

I just added a pull request (https://github.com/mpetroff/pannellum/pull/556) to provide a configurable factor option to the touch drag speed. It lets you add a number to be used to scale the speed. Some of our users wanted to be able to slow it down a bit, so that was the impetus for my update.

I'm sure something like this could also be adapted for mouse and arrow, as well, in tandem with the work @jannecederberg and @mpetroff have already put into it!