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) {
this.map = map;
this.map.dragging.disable();
const interval = window.setInterval(() => {
MapProvider.invalidateWhenRendered(map, this.mapContainer, interval);
});

View File

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

View File

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