refactor: prevent accidental scolls on map widget

This commit is contained in:
Rainer Killinger
2022-05-27 11:35:13 +02:00
parent 401e96e86e
commit 04afdb7543
3 changed files with 3 additions and 1 deletions

View File

@@ -76,6 +76,7 @@ export class MapWidgetComponent implements OnInit {
*/ */
onMapReady(map: Map) { onMapReady(map: Map) {
this.map = map; this.map = map;
this.map.dragging.disable();
const interval = window.setInterval(() => { const interval = window.setInterval(() => {
MapProvider.invalidateWhenRendered(map, this.mapContainer, interval); MapProvider.invalidateWhenRendered(map, this.mapContainer, interval);
}); });

View File

@@ -7,7 +7,7 @@
></div> ></div>
<div class="map-buttons"> <div class="map-buttons">
<ion-button <ion-button
color="light" color="primary"
shape="round" shape="round"
size="small" size="small"
[routerLink]="['/map', place.uid]" [routerLink]="['/map', place.uid]"

View File

@@ -2,6 +2,7 @@ div.map-container {
height: 100%; height: 100%;
width: 100%; width: 100%;
display: block; display: block;
pointer-events: none;
} }
div.map-buttons { div.map-buttons {