We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2e0f6f9 commit 1cb1cc9Copy full SHA for 1cb1cc9
compose/snippets/src/main/java/com/example/compose/snippets/stylus/StylusSnippets.kt
@@ -25,14 +25,15 @@ import androidx.compose.ui.Modifier
25
@Composable
26
@OptIn(ExperimentalComposeUiApi::class)
27
fun DrawArea(modifier: Modifier = Modifier) {
28
- Canvas(modifier = modifier
29
- .clipToBounds()
30
- .pointerInteropFilter {
31
- viewModel.processMotionEvent(it)
32
- }
+ Canvas(
+ modifier = modifier
+ .clipToBounds()
+ .pointerInteropFilter {
+ viewModel.processMotionEvent(it)
33
+ }
34
- ) {
35
- // Drawing code here.
36
+ ) {
+ // Drawing code here.
37
38
}
39
// [END android_compose_stylus_motion_event_access]
0 commit comments