From 4e6bb882236e853ff660119e8a52e09ac1f85c3e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E4=BD=99=E7=A9=BA?= <70465933+YuKongA@users.noreply.github.com> Date: Sat, 31 Aug 2024 17:19:52 +0800 Subject: [PATCH] example: Disable PageUserScroll on WasmJs platform --- composeApp/src/commonMain/kotlin/ThirdPage.kt | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/composeApp/src/commonMain/kotlin/ThirdPage.kt b/composeApp/src/commonMain/kotlin/ThirdPage.kt index 3426133..3c1fe1e 100644 --- a/composeApp/src/commonMain/kotlin/ThirdPage.kt +++ b/composeApp/src/commonMain/kotlin/ThirdPage.kt @@ -55,7 +55,8 @@ fun ThirdPage( MiuixSuperSwitch( title = "Enable Page User Scroll", checked = enablePageUserScroll, - onCheckedChange = onEnablePageUserScrollChange + onCheckedChange = onEnablePageUserScrollChange, + enabled = platform() != Platform.WasmJs, ) MiuixSuperSwitch( title = "Enable Top Bar Blur",