Sie sind nicht angemeldet.

1

Freitag, 22. Februar 2019, 09:55

Events propagation in Plugin [SOLVED]

Hi everybody! Face with a problem - touch events inside plugin blocked by krpano. I put inside plugin leaflet js player for viewing openStreet maps.
On the desktop comps everything works perfect: http://3dvr.mir-360.ru/panomap/
There is two buttons, that was added by appendChild from the plugin - green and orange. green above the map and orange is under.

It's a code of the plugin: http://3dvr.mir-360.ru/panomap/test_plugin.js
Touch events in mobile mode on buttons works fine. But events on map marker or control elements are blocked. Can't understand why it's happen.
I need that map markers working. Screen of the devtools- http://take.ms/9xN4o

Standalone map example worx perfect: https://leafletjs.com/examples/layers-control/example.html
devtools screen - http://take.ms/AWkZi



xml of the test:http://3dvr.mir-360.ru/panomap/tour.xml


And another one problem - pinch zoom gesture on plugin layer propagating on underlaying pano layer. How can i stop propagation zoom in and out and stays it only on the map?

Dieser Beitrag wurde bereits 2 mal editiert, zuletzt von »Recky« (24. Februar 2019, 17:32)


2

Freitag, 22. Februar 2019, 14:48

1st problem solved, by adding "capturetouch:false" in embed settings. *w00t*
But pinch gesture stil affect to the background pano


3

Freitag, 22. Februar 2019, 23:14

Recky,

Without testing your case on a mobile just try set the <control https://krpano.com/docu/xml/#control.touchzoom
Does it help?
Pavel

4

Sonntag, 24. Februar 2019, 17:31

Thankyou! Such a workaround, but it works. SOLVED!