You are not logged in.

Dear visitor, welcome to krpano.com Forum. If this is your first visit here, please read the Help. It explains in detail how this page works. To use all features of this page, you should consider registering. Please use the registration form, to register here or read more information about the registration process. If you are already registered, please login here.

1

Monday, May 14th 2018, 12:51pm

Disable swipe in mobile browser

Hi,

My client wants to enable the gyroscope alone and he wants to disable swipe feature in mobile. Could you guys please help? Thanks in advance

2

Monday, May 14th 2018, 6:34pm

Hi,

Here one possibility:

Source code

1
<control usercontrol="off" devices="mobile.or.tablet" />


But better use the onavailable event of the gyro plugin to disable the normal control only when they gyro control is really available:

Source code

1
<events gyro_onavailable="set(enabled,true); set(control.usercontrol,off);" />


Best regards,
Klaus