Mobile Annotations
Touch-optimized annotation editing for phones and tablets. Resize annotation boundaries with touch-and-hold gestures. Linked endpoints keep adjacent annotations connected.
Loading...
Mobile Optimizations
This example uses the same touch optimizations as the multi-clip example:
- Touch delay (250ms) - Distinguishes scroll from drag
- Linked endpoints - Adjacent annotation boundaries move together
- Larger action buttons - 44px minimum touch targets
- Streamlined annotations - Fewer annotations for performance
Implementation
// The annotation boxes wire the drag of their edges themselves.
// touchOptimized: a touch is held for 250 ms before it drags an edge,
// so a swipe still scrolls the waveform.
<ClipInteractionOptions touchOptimized>
{/* No track controls column on a narrow screen: leave the part out */}
<WaveformRoot>
<WaveformTimescale />
<WaveformLoopRegion />
<WaveformTracks />
<WaveformAnnotationBoxes />
<WaveformSelection />
<WaveformPlayhead />
</WaveformRoot>
<AnnotationList actions={annotationActions} height={200} />
</ClipInteractionOptions>