Compare commits

...

2 Commits

Author SHA1 Message Date
Robin
158fc88ffe Log the detected platform 2026-05-06 12:30:06 +02:00
Robin
1f5acfbeac Make controls show up on tap on iOS
As documented at https://www.quirksmode.org/blog/archives/2014/02/mouse_event_bub.html, the fact that click events do not bubble by default is a longstanding quirk of iOS Safari.
2026-05-06 12:30:06 +02:00
2 changed files with 7 additions and 0 deletions

View File

@@ -125,6 +125,12 @@ body[data-platform="ios"] {
-apple-system, BlinkMacSystemFont, "Inter", sans-serif;
}
body[data-platform="ios"] * {
/* This makes click events bubble properly on iOS
https://www.quirksmode.org/blog/archives/2014/02/mouse_event_bub.html */
cursor: pointer;
}
@layer compound-legacy {
h1,
h2,

View File

@@ -189,6 +189,7 @@ export class Initializer {
// Add the platform to the DOM, so CSS can query it
document.body.setAttribute("data-platform", platform);
logger.info(`Platform: ${platform}`);
}
public static init(): Promise<void> | null {