dragDebug.ts455 BView on GitHub
/** TEMPORARY diagnostic — remove once the drag hand-off is understood. */
export function dragDebug(event: string, data: Record<string, unknown>) {
  if (typeof window === 'undefined') return;
  try {
    void fetch('http://localhost:4999/log', {
      method: 'POST',
      headers: { 'Content-Type': 'text/plain' },
      body: JSON.stringify({ t: Math.round(performance.now()), event, ...data }),
    });
  } catch {
    /* diagnostic only */
  }
}