Tighten mine-only inbox swipe archive

Co-Authored-By: Paperclip <noreply@paperclip.ing>
This commit is contained in:
dotta 2026-03-26 17:14:48 -05:00
parent 4426d96610
commit 826da2973d
5 changed files with 29 additions and 16 deletions

View file

@ -83,7 +83,7 @@ describe("SwipeToArchive", () => {
expect(onClick).not.toHaveBeenCalled();
act(() => {
vi.advanceTimersByTime(210);
vi.advanceTimersByTime(140);
});
expect(onArchive).toHaveBeenCalledTimes(1);

View file

@ -9,9 +9,9 @@ interface SwipeToArchiveProps {
className?: string;
}
const COMMIT_THRESHOLD = 0.4;
const MAX_SWIPE = 0.92;
const COMMIT_DELAY_MS = 210;
const COMMIT_THRESHOLD = 0.32;
const MAX_SWIPE = 0.88;
const COMMIT_DELAY_MS = 140;
export function SwipeToArchive({
children,