Skip to main content

intent_from_offset

Function intent_from_offset 

Source
pub fn intent_from_offset(y: f64, row_height: f64) -> DropIntent
Expand description

Derive a DropIntent from the pointer’s Y offset within a row of the given height. Top 25% → Before, bottom 25% → After, middle → Into.

If your rows can’t receive children (a flat outline), map Into to whichever sibling intent you prefer.