wavesurfer.js icon indicating copy to clipboard operation
wavesurfer.js copied to clipboard

Feat/drag region while scrolling

Open clinton-encord opened this issue 5 months ago • 1 comments

Short description

Resolves #4159

Implementation details

  • When region reaches the edge of the container, we autoScroll to bring it into view. This creates the effect where by leaving it at the edge will scroll the container.
  • The draggable function also has to know about wavesurfer then to get the current scroll value.

How to test it

  • Set up wavesurfer, and zoom in such that its
  • Create/update/drag regions to the edge of the container

Screenshots

Video available in the discussion.

Checklist

  • [ ] This PR is covered by e2e tests
  • [ ] It introduces no breaking API changes

clinton-encord avatar Aug 13 '25 09:08 clinton-encord

@katspaugh from the discussion from the last PR (which I closed because that PR was made against my fork's main branch instead of a feature branch), I've made the feature work without introducing wavesurfer into draggable, which makes a lot of sense!

clinton-encord avatar Aug 13 '25 09:08 clinton-encord