react-transcript-editor icon indicating copy to clipboard operation
react-transcript-editor copied to clipboard

MediaPlayer resumes play when I click the 'delete' button or arrow buttons multiple times

Open NickRuiz opened this issue 5 years ago • 1 comments

Describe the bug When tapping the 'delete' key several times to remove words or spaces, the player resumes play.

To Reproduce Steps to reproduce the behavior:

  1. Go to Settings Panel
  2. Click on 'Pause while Typing' to select
  3. Begin editing the transcript while the audio is playing. Press the 'delete' key once and the player will stop playing. Repeatedly tap the 'delete' key and the editor will get sluggish, then media will start playing again.

Expected behavior MediaPlayer would not resume play; editing would continue as normal.

Screenshots

Desktop (please complete the following information):

  • OS: macOS Mojave Version 10.14.6
  • Browser Chrome
  • Version 78.0.3904.87 (Official Build) (64-bit)

Additional context

NickRuiz avatar Nov 11 '19 16:11 NickRuiz

I think this might be because of how the "pause while typing" mechanism work. There is a timer, that pauses the playback, when you start typing, and it resets itself on every key press (draftJs onChange). There's a chance that Increasing that timer might fix the issue.

pietrop avatar Nov 18 '19 14:11 pietrop