Drag and Drop in KaneAI
KaneAI lets you author drag interactions on Desktop Web, Android apps, and iOS apps using either natural language or by performing the gesture yourself. On Mobile Web, drag and drop can only be authored using natural language; Manual Interaction does not capture drag gestures. Use it for Kanban boards and other drag-driven UI flows.
Overview
You can author a drag step in two ways:
- Natural Language (NL): describe the drag in plain English (e.g.
drag "Card A" to "Column B"). - Manual Interaction: perform the gesture on the device or browser viewport and have it captured as a step.
Drag and Drop vs Click and Drag
KaneAI supports two distinct drag interactions. They look similar but behave differently, and they are not interchangeable:
- Drag and Drop: the element is first long-pressed to pick it up, and only then moved to the target. This is the standard gesture for moving items between containers and works on all platforms.
- Click and Drag: the element is pressed and moved immediately, without any long press. This is how interactions such as sliders, canvas drawing, and element resizing work, and it is available on Desktop Web only.
| Drag and Drop | Click and Drag | |
|---|---|---|
| Gesture | Long press on the element first, then move it to the target | Press and move in one continuous motion, no long press |
| Platforms | Desktop Web, Android App, iOS App, Mobile Web | Desktop Web only |
| Typical scenarios | Kanban cards, list reordering, container-to-container transfer | Sliders, canvas drawing, element resizing, range selection |
If a drag step fails on an element that doesn't respond to a long press (for example a slider thumb or a canvas), the element likely expects Click and Drag rather than Drag and Drop. Click and Drag has its own constraints, see Limitations.
Supported Platforms
| Platform | Natural Language | Manual Interaction |
|---|---|---|
| Desktop Web | ✅ | ✅ |
| Android App | ✅ | ✅ |
| iOS App | ✅ | ✅ |
| Mobile Web | ✅ | ❌ |
When to Use Which Mode
| Use Case | Recommended Mode |
|---|---|
| Kanban / multi-container drag | NL or Manual |
| Sortable grid | NL or Manual |
| Container-to-container transfer | NL (recommended) |
| Sliders (volume, range, vertical, payment) | Manual only |
| Confirmation gestures (slide-to-confirm, drag-to-pay, swipe-to-unlock) | Manual only |
| Dynamic / moving drop targets | Manual only |
| Element resizing / canvas operations / flow charts | Manual (recommended) |
| Drag with no stable element identifier | Manual (recommended) |
Sliders and confirmation gestures cannot be authored with NL. Use Manual Interaction to capture the gesture directly. KaneAI records source, target, and drag vector in a coordinate-safe form.
Author with Natural Language
Type the instruction into the KaneAI authoring panel.
Supported NL Patterns
| Pattern | Example |
|---|---|
| Name-based | drag "Card A" to "Column B" |
| Index-based | drag the 3rd item to the top |
| Positional | drag the top card to the bottom |
| Anchor reference | drag X to the bottom of the list |
| Drop-on phrasing | drop "Cart" on "Checkout button" |
More examples:
Verifieddrag "Task Card" to "Done column"
move the 3rd item to the top
drop "iPhone 15" on the comparison table
drag the top card to the bottom of the list
move task card from "To Do" column to "In Progress" column
Natural language drag and drop works best when:
- Drop zones are explicitly defined and visible.
- You're moving items between containers.
- The target location is static (not dynamically generated).
Author with Manual Interaction
Manual drag recording is supported on Desktop Web and mobile apps. It is not supported on mobile browsers.
With the session in the Authoring Steps state, perform the drag directly on the device viewport. The gesture is captured and the step lands at the cursor — there is no mode to switch to.
Gesture Classification
| Input | Captured As |
|---|---|
| Touch < 1 second, no movement | Tap |
| Touch ≥ 1 second, no movement (< 10 px drift) | Long press |
| Movement ≥ 10 px | Swipe |
| Hold ≥ 1 second + Movement ≥ 10 px | Drag |
For tap, long-press, multi-click, and right-click authoring, see Click Interactions.
When Manual Interaction is Required
- Sliders: volume, range, vertical, payment-style (e.g., slide-to-pay).
- Confirmation gestures: slide-to-confirm, drag-to-pay, swipe-to-unlock.
- Custom drag handles without a stable accessibility ID or selector.
- Canvas-based interactions, drawing tools, and flow chart manipulation.
- Element resizing and precise positioning.
Manual recording is recommended for any scenario where the drop location isn't explicitly defined or the target changes during the drag.