Closed robxyy closed 1 month ago
Describe the bug Incorrect imePadding and high cpu usage when repeatedly opening and closing Keyboard on iOS
imePadding
Keyboard
Affected platforms
Versions
To Reproduce Steps and/or the code snippet to reproduce the behavior:
@Composable fun App() { MaterialTheme( colors = darkColors() ) { Surface { Column( Modifier.statusBarsPadding().fillMaxSize(), verticalArrangement = Arrangement.Center ) { val focusManager = LocalFocusManager.current val imePadding = WindowInsets.ime.asPaddingValues() TextField("", {}, Modifier.fillMaxWidth()) TextField("Hello World!", {}, Modifier.fillMaxWidth()) Text(imePadding.toString()) LazyColumn( Modifier.pointerInput(Unit) { detectTapGestures { focusManager.clearFocus(true) } }.imePadding() ) { items(100) { Text("Hello World!", Modifier.fillParentMaxWidth()) } } } } } }
Expected behavior Normal cpu usage and correct imePadding
Screenshots
https://github.com/JetBrains/compose-multiplatform/assets/9105106/73f3b7ab-bef7-4316-adb4-11b5332cbb8b
Please check the following ticket on YouTrack for follow-ups to this issue. GitHub issues will be closed in the coming weeks.
Describe the bug Incorrect
imePadding
and high cpu usage when repeatedly opening and closingKeyboard
on iOSAffected platforms
Versions
To Reproduce Steps and/or the code snippet to reproduce the behavior:
Expected behavior Normal cpu usage and correct
imePadding
Screenshots
https://github.com/JetBrains/compose-multiplatform/assets/9105106/73f3b7ab-bef7-4316-adb4-11b5332cbb8b