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

Wednesday, August 2nd 2017, 6:36pm

Making Radar touch controls work with gyro2 plugin

Has anyone had any luck getting the radar touch controls to work with the gyro2 plugin? I'm referring to the way you can drag the radar cone to change the pano orientation. It seems like this functionality is disabled when the gyro is enabled. Since we have access to the radar source code, I've got some ideas about how to fix it but I was curious if I was just missing something obvious about making these plugins play better together.

Thanks

2

Wednesday, August 2nd 2017, 7:16pm

Solved

I solved this by disabling the gyro plugin on a ondown.touch event added to the radar layer and then re-enabling the gyro plugin on a onup.touch event.

3

Wednesday, August 2nd 2017, 9:11pm

Hi,

good idea/solution!

The reason why the radar dragging isn't working during gyro control is that the gyro is constantly updating the view and so overruling/overwriting a potential control from somewhere else (like from the radar plugin).

Best regards,
Klaus

Similar threads