Skip to content

A reactive notebook for Python — run reproducible experiments, query with SQL, execute as a script, deploy as an app, and version with git. Stored as pure Python. All in a modern, AI-native editor.

fix(slides): disable scroll view on mobile to prevent crash (#10212)

Shahmir Varqha34a24222af1e
diff --git a/frontend/src/components/slides/reveal-component.tsx b/frontend/src/components/slides/reveal-component.tsx
index 7c7e1a3d3c..cccf4fe46f 100644
--- a/frontend/src/components/slides/reveal-component.tsx
+++ b/frontend/src/components/slides/reveal-component.tsx
@@ -563,6 +563,10 @@ const RevealSlidesComponent = ({
transition: deckTransition,
keyboardCondition: (event: KeyboardEvent) => !Events.fromInput(event),
url: kioskUrl,
+ // reveal.js auto-switches to its scroll view for mobile.
+ // We disable this mode because it rewrites the slide DOM that
+ // `@revealjs/react` owns, which crashes on `reveal.sync()` re-renders.
+ scrollActivationWidth: 0,
}),
[width, height, deckTransition, kioskUrl],
);