Sie sind nicht angemeldet.

Lieber Besucher, herzlich willkommen bei: krpano.com Forum. Falls dies Ihr erster Besuch auf dieser Seite ist, lesen Sie sich bitte die Hilfe durch. Dort wird Ihnen die Bedienung dieser Seite näher erläutert. Darüber hinaus sollten Sie sich registrieren, um alle Funktionen dieser Seite nutzen zu können. Benutzen Sie das Registrierungsformular, um sich zu registrieren oder informieren Sie sich ausführlich über den Registrierungsvorgang. Falls Sie sich bereits zu einem früheren Zeitpunkt registriert haben, können Sie sich hier anmelden.

olihar

Schüler

  • »olihar« ist der Autor dieses Themas

Beiträge: 140

Wohnort: Iceland

Beruf: Interaction Designer

  • Nachricht senden

1

Mittwoch, 5. Februar 2014, 20:51

Disable touch on touchscreens when using Gyro

For a project I would like if possible to disable any touch interactions on for example iPhone and simply use the Gyro for navigation (maybe 2 buttons for zoom in and out, but that's it)

Is this something that is possible to do, I have not seen any examples of this.


The biggest reason for this is due to directions will get lost when user starts to touch the screen, when Gyro is on by default. Another solution could be if there is a way that image will jump back to Gyro location when finger has been let go off the screen.


Any ideas and suggestions from you guys to keep pointing direction always correct.

2

Donnerstag, 6. Februar 2014, 09:55

If no other solution I would propose to make 100% / 100% empty container with enabled on false not to allow mouse/touch events. When not needed remove it to allow normal user interaction.

jordi

Profi

Beiträge: 583

Wohnort: Barcelona

Beruf: creating ideas & coding them

  • Nachricht senden

3

Donnerstag, 6. Februar 2014, 10:33

Krpano already has a method to do that :

set(control.usercontrol, off);
everpano.com step beyond 360

olihar

Schüler

  • »olihar« ist der Autor dieses Themas

Beiträge: 140

Wohnort: Iceland

Beruf: Interaction Designer

  • Nachricht senden

4

Donnerstag, 6. Februar 2014, 17:15

set(control.usercontrol, off);

That is what I was looking for, thank you. works great.

olihar

Schüler

  • »olihar« ist der Autor dieses Themas

Beiträge: 140

Wohnort: Iceland

Beruf: Interaction Designer

  • Nachricht senden

5

Donnerstag, 6. Februar 2014, 18:49

But if I would like this only to happen on lets say iPhone and iPad but would want Mouse interaction on the computer.

do I just add devices="html5+!firefox+!android" somewhere.

jordi

Profi

Beiträge: 583

Wohnort: Barcelona

Beruf: creating ideas & coding them

  • Nachricht senden

6

Freitag, 7. Februar 2014, 10:45

Yes, exactlly, you just have to say :

Quellcode

1
ifnot(device.desktop,set(control.usercontrol, off));



you can manage any kind of device checking http://krpano.com/docu/xml/#layer.devices
everpano.com step beyond 360