@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/dist/waveform-player.cjs +3 -1
- package/dist/waveform-player.cjs.map +2 -2
- package/dist/waveform-player.esm.js +1 -1
- package/dist/waveform-player.esm.js.map +2 -2
- package/dist/waveform-player.js +3 -1
- package/dist/waveform-player.min.js +1 -1
- package/dist/waveform-player.min.js.map +2 -2
- package/package.json +1 -1
- package/src/js/core.js +7 -1
package/package.json
CHANGED
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
|
|