title: The audio duration got changed weirdly
body: <p>I'm trying to customize my audio with a progress bar to change the current time of audio. The current time is calculated to follow the percent of the progress bar.</p>
  <pre><code>    const seekBarInput = (e) =&gt; {
          console.log(e.target.value);
          let tmp = e.target.value;
          audioRef.current.currentTime = (audioRef.current.duration / 100) * tmp;
          console.log(audioRef.current.currentTime);
      }
  
      return (
          &lt;div className='Audio' &gt;
              &lt;div className='progressBar'&gt;
                  &lt;input type='range' min='0' max='100' step='1'
                      onInput={seekBarInput} /&gt;
              &lt;/div&gt;
              &lt;audio controls ref={audioRef}&gt;
                  &lt;source src=&quot;http://localhost:8082/image/file-1658915016639.mp3&quot; /&gt;
              &lt;/audio&gt;
          &lt;/div&gt;
      )
  </code></pre>
  <p>It works but when I click at the almost end of the progress bar (when the progress bar's value is almost 100), the duration of the audio got changed up to 3 seconds. It's so weird because I do not change the audio duration in my code. Can you explain it for me?</p>