mirror of
https://gitlab.com/openstapps/openstapps.git
synced 2026-01-22 09:32:41 +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) {
|
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);
|
||||||
});
|
});
|
||||||
|
|||||||
@@ -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]"
|
||||||
|
|||||||
@@ -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 {
|
||||||
|
|||||||
Reference in New Issue
Block a user