Skip to content

Commit

Permalink
chore: Put zoom threshold back. #1601
Browse files Browse the repository at this point in the history
  • Loading branch information
mturoci committed Aug 10, 2023
1 parent 7a4dceb commit a295102
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ui/src/parts/range_annotator.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -195,7 +195,7 @@ const
itemsToAnnotations = (items?: AudioAnnotatorItem[]) => {
return items?.map(i => ({ ...i, id: xid(), canvasHeight: WAVEFORM_HEIGHT, canvasY: 0, canvasStart: i.start, canvasEnd: i.end })) || []
},
needsZoom = (duration: F) => duration > 10,
needsZoom = (duration: F) => duration > 120,
drawAnnotation = (ctx: CanvasRenderingContext2D, { tag, canvasStart, canvasEnd, canvasHeight, canvasY, isFocused }: DrawnAnnotation, colorsMap: Map<S, TagColor>) => {
ctx.fillStyle = colorsMap.get(tag)?.transparent || 'red'
ctx.fillRect(canvasStart, canvasY, canvasEnd - canvasStart, canvasHeight)
Expand Down

0 comments on commit a295102

Please sign in to comment.