pannellum icon indicating copy to clipboard operation
pannellum copied to clipboard

Continuous rotation vertically

Open lmmurtuza opened this issue 4 years ago • 1 comments

Hi,

I have a Pannellum set up for one of my project and it is working brilliantly. I have just got a new requirement where holding down the Up/Down arrow buttons(not the keyboard button. But HTML button) should keep rotating the viewer vertically unless mouse is released. I tried using setTimeout() but it is not smooth. What should be the timeout interval or is there any better way to achieve this?

Note: I am very new to Pannellum.

Thanks

lmmurtuza avatar Jan 20 '21 15:01 lmmurtuza

I'd simulate keydown and keyup events with JavaScript when the mouse button is clicked and released, which should trigger the same functionality in Pannellum that is used when the arrow keys are pressed.

mpetroff avatar Jan 24 '21 19:01 mpetroff