Skip to content

A fast 2D and 3D game engine — TypeScript SDK, C++/WebAssembly core, visual editor. Ship one project to web, desktop, WeChat MiniGames, playable ads, and native Android / iOS.

fix(editor): show the PAUSED pill above the play-in-viewport overlay

yhh5a3a4b0a8141
diff --git a/desktop/src/theme/app.css b/desktop/src/theme/app.css
index 1b7e68e38..947c59317 100644
--- a/desktop/src/theme/app.css
+++ b/desktop/src/theme/app.css
@@ -707,7 +707,11 @@ body.thumb-capture .viewport > :not(.viewport__stage):not(.viewport__play) {
top: 10px;
left: 50%;
transform: translateX(-50%);
- z-index: 3;
+ /* Above the play-in-viewport overlay (.viewport__play, z-index 6) — otherwise
+ the opaque running-game iframe hides the pill and a PAUSED game reads as a
+ hang. Non-interactive so it never eats a click meant for the game. */
+ z-index: 7;
+ pointer-events: none;
font-size: var(--fs-xs);
font-weight: 600;
letter-spacing: 0.1em;