You are not logged in.

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