@arraypress/waveform-player 1.19.1 → 1.19.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@arraypress/waveform-player",
3
- "version": "1.19.1",
3
+ "version": "1.19.3",
4
4
  "description": "Lightweight, customizable audio player with waveform visualization",
5
5
  "type": "module",
6
6
  "types": "./index.d.ts",
package/src/js/core.js CHANGED
@@ -1392,12 +1392,18 @@ export class WaveformPlayer {
1392
1392
  this.progress = clamp((clientX - rect.left) / rect.width);
1393
1393
  this.drawWaveform();
1394
1394
  this._updateSeekHandle();
1395
- this._updateHoverTip(clientX);
1396
1395
  // Live time readout while scrubbing (Spotify-style): the audio keeps
1397
1396
  // playing at its old position; the display shows where release lands.
1398
1397
  const dur = this.getSeekDuration();
1399
1398
  if (dur && this.currentTimeEl) {
1400
1399
  this.currentTimeEl.textContent = formatTime(this.progress * dur);
1400
+ // The current-time already shows the target — don't also pop the
1401
+ // hover tooltip with the same value (that duplicate is the bug).
1402
+ this._hideHoverTip();
1403
+ } else {
1404
+ // No current-time readout to fall back on — keep the tooltip as the
1405
+ // only scrub feedback.
1406
+ this._updateHoverTip(clientX);
1401
1407
  }
1402
1408
  }
1403
1409