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
Moreover, I don't want to put something very opinionated into useWavesurfer, i.e. watching for enableDragSelection param in RegionsPlugin (one of several plugins) because RegionsPlugin can be not used in every project, thus it's easier to create CustomRegionsPlugin extending original one to enable dragSelection after plugin is created via super call.
How your case can be resolved?
One of possible ways is to create custom regions plugin on basis of original one and another one is to use useWavesurfer hook in custom component and place it as child of WaveSurfer and enable dragSelection.
{
key: "regions",
plugin: RegionsPlugin,
options: { dragSelection: true }
},
The text was updated successfully, but these errors were encountered: