-
Notifications
You must be signed in to change notification settings - Fork 174
Open
Labels
priority: p2Moderately-important priority. Fix may not be included in next release.Moderately-important priority. Fix may not be included in next release.triage meI really want to be triaged.I really want to be triaged.type: bugError or flaw in code with unintended results or allowing sub-optimal usage patterns.Error or flaw in code with unintended results or allowing sub-optimal usage patterns.
Description
Environment details
- API: Maps Compose
- OS: Android 14 (also reproducible on Android 13)
- Device: Pixel 7 (also reproduced on Samsung devices)
- android-maps-compose version: [8.1.0]
- Google Play Services Maps version: [20.0.0]
Description
When using a draggable Marker in android-maps-compose, the marker visually "jumps" slightly upward on the first long press before any actual drag movement begins.
This happens immediately when the drag gesture is initiated, even if the user's finger has not moved yet.
Subsequent drags behave more normally, but the first interaction consistently causes a small positional shift.
Steps to reproduce
- Add a Marker with
draggable = true - Long press on the marker to initiate drag
- Observe that the marker shifts upward slightly before actual dragging begins
Code example
@Composable
fun MapScreenV2() {
val markerState = rememberUpdatedMarkerState(
position = LatLng(41.2995, 69.2401)
)
GoogleMap (
modifier = Modifier.fillMaxSize()
) {
Marker(
state = markerState,
draggable = true
)
}
}Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
priority: p2Moderately-important priority. Fix may not be included in next release.Moderately-important priority. Fix may not be included in next release.triage meI really want to be triaged.I really want to be triaged.type: bugError or flaw in code with unintended results or allowing sub-optimal usage patterns.Error or flaw in code with unintended results or allowing sub-optimal usage patterns.