@devries-cameron20 / t3code Mirror · read-only
Fork 0

The best way to control Claude Code, Codex and more from any computer or phone

Mirrored from https://github.com/Camo67/t3code.git

Synced Nov 21, 04:45 UTC

main
ts 12 lines 410 Bytes
Raw
1 export function threadDragGapOffset(
2 rowOffset: number,
3 sourceOffset: number,
4 sourceHeight: number,
5 insertionOffset: number,
6 ): number {
7 if (rowOffset === sourceOffset) return 0;
8 if (insertionOffset <= sourceOffset) {
9 return rowOffset >= insertionOffset && rowOffset < sourceOffset ? sourceHeight : 0;
10 }
11 return rowOffset > sourceOffset && rowOffset < insertionOffset ? -sourceHeight : 0;
12 }