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
I have barWidth set to 2 and barGap set to 1. When I use this setup with the ZoomPlugin, I get terrible zooming performance in Safari on my mac. I'm just zooming using the default mousewheel input using the trackpad on my mac, I don't have any additional slider created. When I remove barWidth and barGap, zoom performance is perfect. The more bars are onscreen, the worse this gets. Perhaps zoom could have a debounce option or use requestAnimationFrame so it re-renders less often? I'm using @wavesurfer/react if that makes a difference.
Small update but I tried this without @wavesurfer/react and I'm getting the same behavior, so it's definitely not a react specific issue. Here's my code.
Bug description
I have barWidth set to 2 and barGap set to 1. When I use this setup with the ZoomPlugin, I get terrible zooming performance in Safari on my mac. I'm just zooming using the default mousewheel input using the trackpad on my mac, I don't have any additional slider created. When I remove barWidth and barGap, zoom performance is perfect. The more bars are onscreen, the worse this gets. Perhaps zoom could have a debounce option or use requestAnimationFrame so it re-renders less often? I'm using @wavesurfer/react if that makes a difference.
Environment
Minimal code snippet
I'm registering ZoomPlugin like this, not sure if there's a better way to do it:
The text was updated successfully, but these errors were encountered: