@checksub_team/peaks_timeline 2.2.1 → 2.2.2

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": "2.2.1",
3
+ "version": "2.2.2",
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
@@ -16069,7 +16069,7 @@ module.exports = function (Konva, SVGs, Utils) {
16069
16069
  this._peaks.logger('peaks.line-indicator.update(): line indicator not found: ' + line.id);
16070
16070
  return;
16071
16071
  }
16072
- if (indicatorData.type === line.indicatorType && indicatorData.text === line.indicatorText) {
16072
+ if (indicatorData.type === line.indicatorType && indicatorData.text === line.indicatorText && indicatorData.subText === line.indicatorSubText) {
16073
16073
  return;
16074
16074
  }
16075
16075
  this.removeIndicator(line.id, true);
@@ -326,7 +326,9 @@ define([
326
326
  return;
327
327
  }
328
328
 
329
- if (indicatorData.type === line.indicatorType && indicatorData.text === line.indicatorText) {
329
+ if (indicatorData.type === line.indicatorType
330
+ && indicatorData.text === line.indicatorText
331
+ && indicatorData.subText === line.indicatorSubText) {
330
332
  return;
331
333
  }
332
334