diff options
| author | Jules Laplace <julescarbon@gmail.com> | 2019-04-17 20:02:42 +0200 |
|---|---|---|
| committer | Jules Laplace <julescarbon@gmail.com> | 2019-04-17 22:05:59 +0200 |
| commit | 699d7a77b9d4120dfb75f271cb924b0e05a2fcaa (patch) | |
| tree | 140c6c2cfea993de3b6ffabfa88bf21af264a6ae /client/map/index.js | |
| parent | 70bb504bcc12c2ec57fef6c01d9cff677fb1bee3 (diff) | |
basic mobile css
Diffstat (limited to 'client/map/index.js')
| -rw-r--r-- | client/map/index.js | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/client/map/index.js b/client/map/index.js index 475ba3c6..29fc2286 100644 --- a/client/map/index.js +++ b/client/map/index.js @@ -150,6 +150,15 @@ export default function append(el, payload) { el.removeChild(mapCover) } }) + mapCover.querySelector('div').addEventListener('touchstart', (e) => { + e.preventDefault() + }) + mapCover.querySelector('div').addEventListener('tap', () => { + map.scrollWheelZoom.enable() + if (mapCover.parentNode === el) { + el.removeChild(mapCover) + } + }) function stopPropagation(e) { e.stopPropagation() } |
