@checksub_team/peaks_timeline 1.4.44 → 1.4.45

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": "@checksub_team/peaks_timeline",
3
- "version": "1.4.44",
3
+ "version": "1.4.45",
4
4
  "description": "JavaScript UI component for displaying audio waveforms",
5
5
  "main": "./peaks.js",
6
6
  "types": "./peaks.js.d.ts",
package/peaks.js CHANGED
@@ -16161,8 +16161,8 @@ module.exports = function (Utils, Konva) {
16161
16161
  this._playheadLayer.add(this._playheadGroup);
16162
16162
  };
16163
16163
  PlayheadLayer.prototype._onPlayheadDrag = function (time) {
16164
- if (self._peaks.player._seek(time)) {
16165
- self._peaks.emit('playhead.drag', self._peaks.player.getCurrentTime());
16164
+ if (this._peaks.player._seek(time)) {
16165
+ this._peaks.emit('playhead.drag', this._peaks.player.getCurrentTime());
16166
16166
  }
16167
16167
  };
16168
16168
  PlayheadLayer.prototype._onPlayheadDragStart = function () {
@@ -207,8 +207,8 @@ define([
207
207
  };
208
208
 
209
209
  PlayheadLayer.prototype._onPlayheadDrag = function(time) {
210
- if (self._peaks.player._seek(time)) {
211
- self._peaks.emit('playhead.drag', self._peaks.player.getCurrentTime());
210
+ if (this._peaks.player._seek(time)) {
211
+ this._peaks.emit('playhead.drag', this._peaks.player.getCurrentTime());
212
212
  }
213
213
  };
214
214