Kepler.gl is a powerful open source geospatial analysis tool for large-scale data sets.
Debounce typings added (#1825)
dariaterekhovaae371649c63fbd
diff --git a/package.json b/package.jsonindex 22ebbc46e..6410bb6a4 100644--- a/package.json+++ b/package.json@@ -111,6 +111,7 @@"@types/keymirror": "^0.1.1","@types/lodash.clonedeep": "^4.5.7","@types/lodash.curry": "^4.1.7",+ "@types/lodash.debounce": "^4.0.7","@types/lodash.flattendeep": "^4.4.7","@types/lodash.get": "^4.4.6","@types/lodash.isequal": "^4.5.5",diff --git a/src/components/common/portaled.tsx b/src/components/common/portaled.tsxindex b411df811..6c9eebfe7 100644--- a/src/components/common/portaled.tsx+++ b/src/components/common/portaled.tsx@@ -46,8 +46,8 @@ const getPageOffset = () => ({const addEventListeners = () => {if (document && document.body)- document.body.addEventListener('mousewheel', debounce(startListening, 100, true));- window.addEventListener('resize', debounce(startListening, 50, true));+ document.body.addEventListener('mousewheel', debounce(startListening, 100));+ window.addEventListener('resize', debounce(startListening, 50));};interface GetChildPosProps {diff --git a/yarn.lock b/yarn.lockindex 0dc4e66c6..cd0dc80b2 100644--- a/yarn.lock+++ b/yarn.lock@@ -3296,6 +3296,13 @@dependencies:"@types/lodash" "*"+"@types/lodash.debounce@^4.0.7":+ version "4.0.7"+ resolved "https://registry.yarnpkg.com/@types/lodash.debounce/-/lodash.debounce-4.0.7.tgz#0285879defb7cdb156ae633cecd62d5680eded9f"+ integrity sha512-X1T4wMZ+gT000M2/91SYj0d/7JfeNZ9PeeOldSNoE/lunLeQXKvkmIumI29IaKMotU/ln/McOIvgzZcQ/3TrSA==+ dependencies:+ "@types/lodash" "*"+"@types/lodash.flattendeep@^4.4.7":version "4.4.7"resolved "https://registry.yarnpkg.com/@types/lodash.flattendeep/-/lodash.flattendeep-4.4.7.tgz#0ce3dccbe006826d58e9824b27df4b00ed3e90e6"