Skip to content

A spy satellite simulator in your browser, except the data is real. Live open source spatial intelligence on a photorealistic 3D globe.

fix: invoke Location animation scheduling through window functions

Sameh Khamis63e535296438
diff --git a/src/ui/locationControls.js b/src/ui/locationControls.js
index 51fadf752..29f334b5d 100644
--- a/src/ui/locationControls.js
+++ b/src/ui/locationControls.js
@@ -12,8 +12,8 @@ export class LocationControls {
onSearch,
onReset,
doc = document,
- requestFrame = requestAnimationFrame,
- cancelFrame = cancelAnimationFrame,
+ requestFrame = (callback) => requestAnimationFrame(callback),
+ cancelFrame = (id) => cancelAnimationFrame(id),
}) {
Object.assign(this, {
elements,