// Translate a vertical drag offset (px) into an integer row-delta,
// given the measured row height (px). Used by QueueTrackRow when a
// neodrag drop completes — we round to the nearest row boundary so
// the user's drop intent maps to a clean queue index.
export function offsetToDelta(offsetY: number, rowHeight: number): number {
  if (rowHeight <= 0) return 0;
  return Math.round(offsetY / rowHeight);
}
