Hotspot press and hold on mobile

jtanz
Posts: 28
Joined: Mon Mar 27, 2017 11:24 pm

Hotspot press and hold on mobile

Postby jtanz » Tue Apr 18, 2017 12:22 am

To make hotspots easier to use in mobile, I want to be able to click and hold on a hotspot instead of accidentally pressing on it while pressing and rotating the viewer on a mobile screen. Is there any easy way to do this, assuming I need to build a fancy plugin? I see hammerjs has a press functionality, would I have to incorporate that into a press and hold event action?

User avatar
rroux
ForgeJS Team
Posts: 145
Joined: Wed Oct 26, 2016 12:19 pm

Re: Hotspot press and hold on mobile

Postby rroux » Tue Apr 18, 2017 7:59 am

Hi jtanz,

We have to improve the behaviour of hotspots interactions on touch screens, so thank you for your feedback !
I know that at the moment you have to double clck hotspots on mobile. It is a known bug that is in the raycaster module and will be fixed as soon as possible.

Regarding the press and release it should be possible to code this behaviour. Today this is the raycaster that determine the hovered object and then call its click method.

Have a nice day !
- Raphaël

Who is online

Users browsing this forum: No registered users and 2 guests