Usage notes
The context contains the clip being moved, the source row captured at drag start, and the candidate target row currently under the pointer. Use it to express app policy such as visual-only tracks, audio-only tracks, locked groups, or modifier-key cross-kind moves.
Signature
Interface TimelineTrackDropContextType parameters
| Name | Constraint | Default | Description |
|---|---|---|---|
TrackKind | None | string | App-defined track kind values carried by source and target tracks. |
Properties
| Name | Signature | Description |
|---|---|---|
clip | clip: Clip | Clip being moved. |
sourceTrack | sourceTrack: Track<TrackKind> | Track that contained the clip at drag start. |
sourceTrackIndex | sourceTrackIndex: number | Source track index at drag start. |
targetTrack | targetTrack: Track<TrackKind> | Candidate destination track. |
targetTrackIndex | targetTrackIndex: number | Candidate destination track index. |