Add prettier and reformat code
This commit is contained in:
parent
68eb00bae9
commit
970a34981f
37 changed files with 3459 additions and 1969 deletions
|
|
@ -1,18 +1,22 @@
|
|||
(function () {
|
||||
|
||||
var touchScreen = (function () {
|
||||
(function() {
|
||||
var touchScreen = (function() {
|
||||
var result = null;
|
||||
|
||||
|
||||
if ('maxTouchPoints' in navigator) {
|
||||
result = navigator.maxTouchPoints > 0;
|
||||
} else if (window.matchMedia && window.matchMedia('(any-pointer:coarse),(any-pointer:fine),(any-pointer:none)').matches) {
|
||||
result = window.matchMedia("(any-pointer:coarse)").matches;
|
||||
} else if (
|
||||
window.matchMedia &&
|
||||
window.matchMedia(
|
||||
'(any-pointer:coarse),(any-pointer:fine),(any-pointer:none)'
|
||||
).matches
|
||||
) {
|
||||
result = window.matchMedia('(any-pointer:coarse)').matches;
|
||||
} else if ('msMaxTouchPoints' in navigator) {
|
||||
result = navigator.msMaxTouchPoints > 0;
|
||||
};
|
||||
|
||||
}
|
||||
|
||||
return result;
|
||||
}()),
|
||||
})(),
|
||||
touchScreenDetectable = touchScreen !== null,
|
||||
touch = touchScreenDetectable ? touchScreen : L.Browser.touch;
|
||||
|
||||
|
|
@ -21,5 +25,4 @@
|
|||
touchScreenDetectable: touchScreenDetectable,
|
||||
touch: touch
|
||||
};
|
||||
|
||||
}());
|
||||
})();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue