Interactive interface for browsing global, full-resolution satellite imagery
debounce resize #1458
Benjamin King23e807838195
diff --git a/web/js/layers/modal.js b/web/js/layers/modal.jsindex dcb760a67..3e493da87 100644--- a/web/js/layers/modal.js+++ b/web/js/layers/modal.js@@ -6,6 +6,7 @@ import LayerList from '../components/layer/product-picker';import lodashIndexOf from 'lodash/indexOf';import lodashSortBy from 'lodash/sortBy';import lodashValues from 'lodash/values';+import lodashDebounce from 'lodash/debounce';export function layersModal(models, ui, config) {var model = models.layers;@@ -44,7 +45,7 @@ export function layersModal(models, ui, config) {});});- $(window).resize(resize);+ $(window).resize(lodashDebounce(resize, 100));};var getInitialProps = function(proj) {setModalSize();