Let the mouse wheel scroll the page over charts and the embedded radar
Publish Container / publish (push) Successful in 3m16s
Publish Container / publish (push) Successful in 3m16s
Chart zoom now needs Ctrl+scroll (or pinch); the embedded radar uses cooperative gestures. Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
This commit is contained in:
1 parent
2fb467d2e5
commit
a9fc20cef4
2 files changed
+5
-2
No files matched your search
@@ -892,6 +892,9 @@ function createRadar(mapEl, timelineEl, playBtn, tsEl, layerBtn) {
|
||||
center: [-98.35, 39.5],
|
||||
zoom: 4,
|
||||
attributionControl: false,
|
||||
// The embedded radar sits in a scrolling page: plain wheel / one-finger drag scroll the page,
|
||||
// Ctrl+wheel / two fingers move the map.
|
||||
cooperativeGestures: mapEl?.id === 'radar-embed',
|
||||
});
|
||||
|
||||
let radarFrames = [];
|
||||
|
||||
Reference in new issue
Block a user