Skip to content

Build your personal knowledge base with Trilium Notes

client/note color picker: decrease the debouncer interval

Adorian Doran0db08f4c62fd
diff --git a/apps/client/src/menus/custom-items/NoteColorPicker.tsx b/apps/client/src/menus/custom-items/NoteColorPicker.tsx
index 9a65073a73..775769261b 100644
--- a/apps/client/src/menus/custom-items/NoteColorPicker.tsx
+++ b/apps/client/src/menus/custom-items/NoteColorPicker.tsx
@@ -125,7 +125,7 @@ function CustomColorCell(props: ColorCellProps) {
const isSafari = useRef(/^((?!chrome|android).)*safari/i.test(navigator.userAgent));
useEffect(() => {
- colorInputDebouncer.current = new Debouncer(500, (color) => {
+ colorInputDebouncer.current = new Debouncer(250, (color) => {
callbackRef.current?.(color);
setPickedColor(color);
});