client/note color picker: decrease the debouncer interval

This commit is contained in:
Adorian Doran 2025-11-21 01:30:45 +02:00
parent e9796c9a35
commit 0db08f4c62

View File

@ -125,7 +125,7 @@ function CustomColorCell(props: ColorCellProps) {
const isSafari = useRef(/^((?!chrome|android).)*safari/i.test(navigator.userAgent)); const isSafari = useRef(/^((?!chrome|android).)*safari/i.test(navigator.userAgent));
useEffect(() => { useEffect(() => {
colorInputDebouncer.current = new Debouncer(500, (color) => { colorInputDebouncer.current = new Debouncer(250, (color) => {
callbackRef.current?.(color); callbackRef.current?.(color);
setPickedColor(color); setPickedColor(color);
}); });