Skip to content

Commit 84695ca

Browse files
authored
Merge pull request #1504 from session-foundation/fix/ses-4196/increase_triple_click_debounce_time
fix: increase triple click debounce time to match default browser time
2 parents a19d49d + f50221b commit 84695ca

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

ts/hooks/useDebouncedSelectAllOnTripleClickHandler.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,8 @@ export const useDebouncedSelectAllOnTripleClickHandler = ({
4040
const resetClickCount = useCallback(
4141
debounce(() => {
4242
clickCount.current = 0;
43-
}, 300),
43+
// NOTE: This value needs to be >= the browser's default triple click interval
44+
}, 500),
4445
[]
4546
);
4647

0 commit comments

Comments
 (0)