From 63e535296438e917014e1bc344175b43d13e3087 Mon Sep 17 00:00:00 2001 From: Sameh Khamis Date: Sat, 12 Sep 2026 22:58:02 -0700 Subject: [PATCH] fix: invoke Location animation scheduling through window functions --- src/ui/locationControls.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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,