mirror of
https://github.com/home-assistant/frontend.git
synced 2025-07-16 05:46:35 +00:00
Fix Safari map panning
This commit is contained in:
parent
09a0afde43
commit
b2d4417b20
@ -60,9 +60,9 @@ export default new Polymer({
|
||||
},
|
||||
|
||||
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.
|
||||
if (window.L.Browser.mobileWebkit) {
|
||||
if (window.L.Browser.mobileWebkit || window.L.Browser.webkit) {
|
||||
this.async(() => {
|
||||
const map = this.$.map;
|
||||
const prev = map.style.display;
|
||||
|
Loading…
x
Reference in New Issue
Block a user