diff --git a/public/global.css b/public/global.css
index cdc56cd..86162e3 100644
--- a/public/global.css
+++ b/public/global.css
@@ -10,6 +10,7 @@ body {
/* padding: 8px; */
box-sizing: border-box;
font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
+ overflow: hidden;
}
a {
diff --git a/src/components/ContactBox.svelte b/src/components/ContactBox.svelte
index 43c2d48..bfb7c71 100644
--- a/src/components/ContactBox.svelte
+++ b/src/components/ContactBox.svelte
@@ -1,14 +1,18 @@
+
+
700
? 'none'
: 'block'};"
class={"contact-box"}
>
- {#if window.innerWidth > 700}
+ {#if windowWidth > 700}
Visualization by mobileBreakpoint ? 2 : 1.4,
- zoom: window.innerWidth > mobileBreakpoint ? 2.001 : 1.4001,
+ minZoom: windowWidth > mobileBreakpoint ? 2 : 1.4,
+ zoom: windowWidth > mobileBreakpoint ? 2.001 : 1.4001,
projection: "globe",
});
@@ -158,7 +160,7 @@
showCompass: true,
visualizePitch: true,
});
- // if (window.innerWidth > mobileBreakpoint) {
+ // if (windowWidth > mobileBreakpoint) {
map.addControl(nav, "top-left");
// }
@@ -195,7 +197,7 @@
flyTo: false,
});
- if (window.innerWidth < mobileBreakpoint) {
+ if (windowWidth < mobileBreakpoint) {
geocoderControl.setLimit(4);
}
@@ -211,7 +213,7 @@
});
const position =
- window.innerWidth > mobileBreakpoint ? "top-right" : "bottom-left";
+ windowWidth > mobileBreakpoint ? "top-right" : "bottom-left";
map.addControl(geocoderControl, position);
return geocoderControl;
@@ -439,7 +441,7 @@
// When using the vizState change/return instead of startRun, it displays the overview before automatically starting the run
// We'll do this with a countdown timer on desktop, and just right into it on mobile
- if (window.innerWidth > mobileBreakpoint) {
+ if (windowWidth > mobileBreakpoint) {
vizState = "overview";
// map.scrollZoom.enable();
// map.dragPan.enable();
@@ -1042,7 +1044,7 @@
pitch: 0,
padding: 70,
maxZoom: 12,
- offset: window.innerWidth < mobileBreakpoint ? [0, -20] : [0, 0], // On mobile, the search bar will get in the way so we actually want it a little off center
+ offset: windowWidth < mobileBreakpoint ? [0, -20] : [0, 0], // On mobile, the search bar will get in the way so we actually want it a little off center
});
map.once("moveend", () => {
@@ -1193,7 +1195,7 @@
// });
-
+
- {#if window.innerWidth > mobileBreakpoint && advancedFeaturesOn === true}
+ {#if windowWidth > mobileBreakpoint && advancedFeaturesOn === true}
config.mobile_breakpoint ? "Click" : "Tap";
+ windowWidth > config.mobile_breakpoint ? "Click" : "Tap";
let message = `${eventActionName} to drop a raindrop anywhere in the world and watch where it ends up`;
$: if (currentLocation?.lat && message !== "") {
@@ -23,7 +25,7 @@
loading = false;
} else if (vizState === "overview") {
message =
- window.innerWidth > config.mobile_breakpoint
+ windowWidth > config.mobile_breakpoint
? ""
: "Run the path again, copy a link to share, or exit and try another path using the buttons below.";
loading = false;
@@ -90,6 +92,8 @@
};
+
+