pannellum icon indicating copy to clipboard operation
pannellum copied to clipboard

Two finger swipe to pan

Open ChaseOnTheWeb opened this issue 5 years ago • 3 comments

If you have a pano within a page of other content, and that pano is full-width and as tall as the viewport, it makes it tricky to scroll past it because Pannellum wants to pan.

Would it be feasible to add an option requiring two fingers to pan (Google Maps does this), and letting the browser handle one finger touch for scrolling? It looks like you can already pan or zoom with two fingers.

ChaseOnTheWeb avatar Sep 04 '20 16:09 ChaseOnTheWeb

Yes, this would be a useful feature.

strarsis avatar Sep 04 '20 18:09 strarsis

Yes, this would be a good addition but only with a "use two fingers to move" notice (similar to what Google Maps does) to make the behavior discoverable. This is similar to the suggestion in https://github.com/mpetroff/pannellum/issues/360#issuecomment-323026648 to do the same for the mouse wheel.

mpetroff avatar Sep 07 '20 23:09 mpetroff

@mpetroff, @ChaseOnTheWeb: PR ready: https://github.com/mpetroff/pannellum/pull/952

strarsis avatar Feb 04 '21 01:02 strarsis