Skip to content

Commit

Permalink
fix: rollback debounce on updateSelectedFeature #345
Browse files Browse the repository at this point in the history
  • Loading branch information
wazolab authored and frodrigo committed Jul 31, 2024
1 parent 8c4a621 commit e24f384
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions components/MainMap/MapFeatures.vue
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
<script lang="ts">
import { FontAwesomeIcon } from '@fortawesome/vue-fontawesome'
import type { MultiPolygon, Polygon } from 'geojson'
import debounce from 'lodash.debounce'
import type {
FitBoundsOptions,
GeoJSONSource,
Expand Down Expand Up @@ -112,6 +113,10 @@ export default defineNuxtComponent({
},
},
created() {
this.updateSelectedFeature = debounce(this.updateSelectedFeature, 300)
},
setup() {
const device = useDevice()
const { config } = storeToRefs(useSiteStore())
Expand Down

0 comments on commit e24f384

Please sign in to comment.