Skip to content
This repository has been archived by the owner on Aug 7, 2018. It is now read-only.

[WIP] Improve responsive resize handling #48

Closed
wants to merge 1 commit into from

Conversation

tf
Copy link
Contributor

@tf tf commented Jun 21, 2017

  • Ensure _handleResize callback is always defined, even if responsive prop is false initially. The callback might be needed if we want to add an event listener later on in componentWillReceiveProps.

  • Use new refresh method to redraw the wavefrom and also update the play progress without actually seeking in the media file. There does not appear to be a need to
    pause while doing this. Wait for isReady, though, to prevent calling refresh before wavesurfer#init has been called in componentDidMount.

Once katspaugh/wavesurfer.js#1146 is merged and released, the peer dependency needs to be updated accordingly.

* Ensure `_handleResize` callback is always defined, even if
  `responsive` prop is false initially. The callback might be needed
  if we want to add an event listener later on in
  `componentWillReceiveProps`.

* Use new `refresh` method from katspaugh/wavesurfer.js#1146 to redraw
  the wavefrom and also update the play progress without actually
  seeking in the media file. There does not appear to be a need to
  pause while doing this. Wait for `isReady`, though, to prevent
  calling refresh before `wavesurfer#init` has been called in
  `componentDidMount`.
@tf
Copy link
Contributor Author

tf commented Nov 3, 2017

Looks like responsiveness has been removed on the v2 branch and will be handled by wavesurfer itself in the future.

@tf tf closed this Nov 3, 2017
@tf tf deleted the responsive-redraw branch November 3, 2017 16:23
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant