Join Slack
Powered by
<Jetpack Compose detectDragGestures seems to be wo...
# stackoverflow
u
user
06/25/2022, 5:51 PM
Jetpack Compose detectDragGestures seems to be working only when Canvas modifier is set to fillMaxSize or matchParentSize inside a Box
I am creating a project where I have to move around Canvas elements(circles and lines) on drag gestures. I am using a Box composable to put different Canvas(s) inside it. And then with the help of
pointerInput
modifier I want to detect drag Gesture and hopefully achieve the behaviour I want. Box( modifier = Modifier .fillMaxSize() .padding(paddingValue),...
3
Views
Open in Slack
Previous
Next