Skip to main content

draggable

Function draggable 

Source
pub fn draggable<E>(element: E, item: DragItem) -> E
Expand description

Makes element the handle of a drag carrying item.

GPUI decides when the press becomes a drag; this only says what is being carried and what the ghost looks like.