mirror of
https://gitlab.com/openstapps/openstapps.git
synced 2026-01-11 12:12:55 +00:00
refactor: prevent accidental scolls on map widget
This commit is contained in:
@@ -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);
|
||||
});
|
||||
|
||||
@@ -7,7 +7,7 @@
|
||||
></div>
|
||||
<div class="map-buttons">
|
||||
<ion-button
|
||||
color="light"
|
||||
color="primary"
|
||||
shape="round"
|
||||
size="small"
|
||||
[routerLink]="['/map', place.uid]"
|
||||
|
||||
@@ -2,6 +2,7 @@ div.map-container {
|
||||
height: 100%;
|
||||
width: 100%;
|
||||
display: block;
|
||||
pointer-events: none;
|
||||
}
|
||||
|
||||
div.map-buttons {
|
||||
|
||||
Reference in New Issue
Block a user