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.
This post has been edited 4 times, last edit by "bhh" (Nov 6th 2018, 9:44pm)
![]() |
Source code |
1 2 3 |
navigator.pointerEnabled = navigator.maxTouchPoints > 0; // Edge 17 touch support workaround document.documentElement.ontouchstart = navigator.maxTouchPoints > 0; // Chrome 70 touch support workaround embedpano(...); |
Hi,
this is the reason:
https://www.chromestatus.com/feature/4764225348042752
In the next krpano release this change will be included/respected.
A workaround for the moment is possible - add these lines in the html file just before the embedpano() call:
![]()
Source code
1 2 3 navigator.pointerEnabled = navigator.maxTouchPoints > 0; // Edge 17 touch support workaround document.documentElement.ontouchstart = navigator.maxTouchPoints > 0; // Chrome 70 touch support workaround embedpano(...);
See also here about the Edge 17 case:
pinch-in pinch-out does not work on Edge
Best regards,
Klaus
However, on my project, adding this code seems to make 'device.touchdevice' always true regardless of what device you are using? Is that correct?
![]() |
Source code |
1 2 |
navigator.pointerEnabled = navigator.maxTouchPoints > 0; // Edge 17 touch support workaround document.documentElement.ontouchstart = navigator.maxTouchPoints > 0; // Chrome 70 touch support workaround |
![]() |
Source code |
1 2 3 |
navigator.pointerEnabled = navigator.maxTouchPoints > 0; // Edge 17 touch support workaround document.documentElement.ontouchstart = navigator.maxTouchPoints > 0 ? function(){} : undefined; // Chrome 70 touch support workaround embedpano(...); |
![]() |
Source code |
1 2 3 |
navigator.pointerEnabled = navigator.maxTouchPoints > 0; // Edge 17 touch support workaround document.documentElement.ontouchstart = ((navigator.userAgent.indexOf("Firefox") > 0 && window.TouchEvent) || navigator.maxTouchPoints > 0) ? function(){} : undefined; embedpano(...); |