Too Fast Drag on visionOS

There is an issue in visionOS with a drag moving too fast when using .draggable or .onDrag. Below is a simple example.

Here is a circle view and a rectangle view.

The goal is to drag the circle to the rectangle.

The issue is that when starting the drag the circle moves very fast with momentum and stops far to the right of the rectangle.

On platforms other than visionOS, the drag is smooth and does not overshoot.

Is there a way to control the drag on visionOS?

Here is example code:


struct TooFastDragView: View {

    var body: some View {
        HStack {
            Image(systemName: "circle")
                .resizable()
                .scaledToFit()
                .frame(width: 60, height: 60)
                .padding(0)
                .draggable("circle")
            Rectangle()
                .foregroundStyle(.secondary.opacity(0.3))
                .dropDestination(for: String.self) { items, location in
                    return true
                }
                .frame(width: 60, height: 60)
        }
        .padding()
    }
}

@kregholgerson This seems like a basic example that should just work. Please file a bug report using Feedback Assistant and post the Feedback Number here for the record. Please see Bug Reporting: How and Why?

Submitted bug number is FB14992043

Too Fast Drag on visionOS
 
 
Q