You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
If the container option is passed to TimelinePlugin.create() to render a timeline in a separate container, then the rendered waveform and the timeline will be visually out of sync when zooming.
How to reproduce:
Create a Wavesurfer instance, with e.g. "#waveform" as a container
Create a TimelinePlugin instance, with e.g. "#timeline" as a container
Call .zoom(zoomLevel) on the Wavesurfer instance to change the zoom level of the waveform
=> The waveform will rerender properly, but the timeline will not
Bug description
If the
container
option is passed toTimelinePlugin.create()
to render a timeline in a separate container, then the rendered waveform and the timeline will be visually out of sync when zooming.How to reproduce:
.zoom(zoomLevel)
on the Wavesurfer instance to change the zoom level of the waveform=> The waveform will rerender properly, but the timeline will not
Environment
Minimal code snippet
Expected result
The timeline and waveform should stay in sync visually when zoom level changes, even when the waveform and the timeline are in different containers.
Obtained result
The timeline is not scaled properly and does not follow the waveform when zoom level changes.
Screenshots
Recording.2024-06-14.182431.mp4
The text was updated successfully, but these errors were encountered: