# Dependency Editing
URL: https://pro.rv-grid.com/guides/gantt/interaction/dependency-editing/
Source: src/content/docs/guides/gantt/interaction/dependency-editing.mdx
Description: Create, select, and delete dependency links in timeline.
Dependency editing supports:

- Drag-to-create links from dependency handles.
- Allowed-type filtering via `gantt.allowedDependencyTypes`.
- Hover/select styling and inline delete UI.
- Keyboard delete on selected dependency.

## Mobile And Touch Devices

On touch devices, dependency handles follow the same select-then-edit model as task-bar editing:

- Tap a task bar to select it.
- Gantt reveals larger dependency handles on the selected bar.
- Drag from a visible start or end dependency handle to another task bar.
- If the pointer lands on a target handle, Gantt uses that explicit endpoint.
- If the pointer lands on the target bar but not a handle, Gantt infers start or end from the pointer position relative to the bar midpoint.

Hidden dependency handles are not hit-testable on coarse pointers, so a swipe near the edge of an unselected task does not start dependency creation. This keeps timeline scrolling usable on phones and tablets while preserving precise dependency editing after task selection.

Implementation:

- `features/dependencies/drag-controller.ts`
- `features/dependencies/dependency-tool.ts`
- `features/dependencies/dependency-layer.ts`
