Interface

UseTimelineClipDropFeedbackResult

Result returned by `useTimelineClipDropFeedback`.

Usage notes

The fields are intentionally transient and mirror the current pointer drag state. Use them for status text, track row highlighting, or custom invalid target feedback while useTimelineClipDrag or `Timeline.ClipInteractionLayer` owns the actual drag operation.

Signature

Type Definition
Interface UseTimelineClipDropFeedbackResult

Properties

NameSignatureDescription
activeClipIdactiveClipId: string | nullClip currently being dragged, or null when no clip body drag is active.
activeTargetTrackIdactiveTargetTrackId: string | nullLast valid track receiving the preview.
feedbackfeedback: TimelineClipDropFeedbackCurrent transient clip drop feedback.
hasFeedbackhasFeedback: booleanWhether any drop feedback is active.
hoveredTrackIdhoveredTrackId: string | nullTrack currently under the pointer, including invalid targets.
sourceTrackIdsourceTrackId: string | nullTrack that contained the dragged clip at drag start.
validvalid: booleanWhether the hovered track is valid for the dragged clip.