mirror of
https://github.com/a-nyx/maputnik-with-pmtiles.git
synced 2024-12-28 17:51:16 +01:00
Fixed typo.
This commit is contained in:
parent
a41b25eea7
commit
7b8b797f9c
1 changed files with 1 additions and 1 deletions
|
@ -4,7 +4,7 @@ import Collapse from 'react-collapse'
|
||||||
import lodash from 'lodash'
|
import lodash from 'lodash'
|
||||||
|
|
||||||
|
|
||||||
// Wait 3 seconds so when a use enables it they don't have to refresh the page.
|
// Wait 3 seconds so when a user enables it they don't have to refresh the page.
|
||||||
const isReduceMotionEnabled = lodash.throttle(() => {
|
const isReduceMotionEnabled = lodash.throttle(() => {
|
||||||
return window.matchMedia("(prefers-reduced-motion: reduce)").matches
|
return window.matchMedia("(prefers-reduced-motion: reduce)").matches
|
||||||
}, 3000);
|
}, 3000);
|
||||||
|
|
Loading…
Reference in a new issue