fix touch detection

This commit is contained in:
Laura Klünder 2018-12-12 16:56:22 +01:00
parent 18c45993fe
commit f05b8f19c5

View file

@ -1045,7 +1045,7 @@ c3nav = {
attributionControl: !window.mobileclient,
});
if (!window.mobileclient) c3nav.map.attributionControl.setPrefix($('#attributions').html());
if (L.Browser.chrome && !('ontouchstart' in window)) {
if (!('ontouchstart' in window || navigator.maxTouchPoints)) {
$('.leaflet-touch').removeClass('leaflet-touch');
}