Files
paseo/packages/app/src/git/diff-document/native-hit-testing.ts
T
Mohamed Boudra c7b103a2cd fix(app): stabilize canvas diff rendering
Keep diff headers and painted content on the same scroll clock while preserving native scrolling and independent per-file horizontal offsets.

Complete review, selection, typography, tree, and palette parity without returning line rendering to React.
2026-08-17 21:14:38 +02:00

18 lines
506 B
TypeScript

import { hitTestDiffDocument } from "./hit-testing";
import type { DiffDocumentModel, DiffFileSection, DiffHit } from "./types";
export function hitTestDiffBodyPoint(input: {
model: DiffDocumentModel;
file: DiffFileSection;
locationX: number;
locationY: number;
horizontalOffset: number;
}): DiffHit | null {
return hitTestDiffDocument({
model: input.model,
x: input.locationX,
documentY: input.file.bodyTop + input.locationY,
horizontalOffset: input.horizontalOffset,
});
}