Table of Contents

Delegate DndCollisionDetection

Namespace
Velvet
Assembly
Velvet.Docs.dll

Returns the colliding droppables ranked best first, as dnd-kit's CollisionDetection does; the first entry becomes the over target and an empty array means no collision. Must be pure over the query — it runs on every pointer move of an active drag.

public delegate DndCollision[] DndCollisionDetection(in DndCollisionQuery query)

Parameters

query DndCollisionQuery
Returns the colliding droppables ranked best first, as dnd-kit's CollisionDetection does; the first entry becomes the over target and an empty array means no collision. Must be pure over the query — it runs on every pointer move of an active drag.

Returns

DndCollision[]
Returns the colliding droppables ranked best first, as dnd-kit's CollisionDetection does; the first entry becomes the over target and an empty array means no collision. Must be pure over the query — it runs on every pointer move of an active drag.