fix: timeline zoom and waveform rendering improvements
- Fix timeline width calculation to always fill viewport at minimum - Fix waveform sampling to match timeline width calculation exactly - Fix infinite scroll loop by removing circular callback - Ensure scrollbars appear correctly when zooming in - Use consistent PIXELS_PER_SECOND_BASE = 5 across all components 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
@@ -170,12 +170,7 @@ export function TrackList({
|
||||
});
|
||||
|
||||
setSyncingScroll(false);
|
||||
|
||||
// Also call the external callback if provided
|
||||
if (onTimeScaleScroll) {
|
||||
onTimeScaleScroll();
|
||||
}
|
||||
}, [syncingScroll, onTimeScaleScroll]);
|
||||
}, [syncingScroll]);
|
||||
|
||||
// Expose the scroll handler via ref so AudioEditor can call it
|
||||
React.useEffect(() => {
|
||||
|
||||
Reference in New Issue
Block a user