Sie sind nicht angemeldet.

1

Donnerstag, 29. Juli 2021, 20:37

Hotspot Icon Delayed Call?

If I’m using a finger to pan around a panorama, such an action will not work if my finger touches a hotspot as I begin to pan.


I have noticed that applications such as Google Maps are able to combat this problem by delaying such actions - a clickable/tappable icon will only be activated if nothing else is done within 1.5 or so seconds of it being tapped.
Therefore, the user can pan/zoom freely without accidentally clicking an icon, and once they want to click the icon, they tap it and it is activated after a small amount of time.


Is there any way to do this on Krpano? If there is any code recommendations or examples, it would be greatly appreciated.


Thank you!



Scott Witte

Fortgeschrittener

Beiträge: 382

Wohnort: Milwaukee, WI USA

Beruf: Professional Photographer

  • Nachricht senden

2

Montag, 2. August 2021, 21:50

Not sure how you are accidentally clicking a hotspot on mobile. In my experience, if my finger touches a hotspot then moves, there is no onclick event.

If you want to move the pano when you accidentally start swiping on a hotspot, set the hotspot capture to false: capture.