Skip to main content

getQuadrant()

getQuadrant(element: HTMLElement, clientY: number): "upper" | "lower" | null

Defined in: dnd/src/quadrantDetection.ts:8

Determines whether the cursor is in the upper quadrant (top 25%), lower quadrant (bottom 25%), or middle zone (center 50%) of an element.

Returns null when the cursor is in the middle zone, indicating no positional change should occur.

Parameters

ParameterType
elementHTMLElement
clientYnumber

Returns

"upper" | "lower" | null


caution

API documentation is generated from the latest commit on the main branch. It may be somewhat inconsistent with official releases of React Query Builder.