diff options
Diffstat (limited to 'apps/web/src')
| -rw-r--r-- | apps/web/src/stores/timeline-store.ts | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/apps/web/src/stores/timeline-store.ts b/apps/web/src/stores/timeline-store.ts index b45f5507..2734903a 100644 --- a/apps/web/src/stores/timeline-store.ts +++ b/apps/web/src/stores/timeline-store.ts @@ -996,11 +996,11 @@ export const useTimelineStore = create<TimelineStore>((set, get) => { }, setSnapThreshold: (threshold) => { - set({ snapThreshold: threshold }); + set({ snapThreshold: Math.max(0, threshold) }); // Ensure non-negative threshold }, setGridInterval: (interval) => { - set({ gridInterval: interval }); + set({ gridInterval: Math.max(0.1, interval) }); // Ensure minimum interval }, }; }); |
