Fix Safari map panning

This commit is contained in:
Pavel Ponomarev 2016-03-18 00:15:54 +02:00
parent 09a0afde43
commit b2d4417b20

View File

@ -60,9 +60,9 @@ export default new Polymer({
}, },
attached() { attached() {
// On iPhone 5, 5s and some 6 I have observed that the user would be // On Safari, iPhone 5, 5s and some 6 I have observed that the user would be
// unable to pan on initial load. This fixes it. // unable to pan on initial load. This fixes it.
if (window.L.Browser.mobileWebkit) { if (window.L.Browser.mobileWebkit || window.L.Browser.webkit) {
this.async(() => { this.async(() => {
const map = this.$.map; const map = this.$.map;
const prev = map.style.display; const prev = map.style.display;