@checksub_team/peaks_timeline 2.3.0-alpha.2 → 2.3.0-alpha.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": "@checksub_team/peaks_timeline",
3
- "version": "2.3.0-alpha.2",
3
+ "version": "2.3.0-alpha.3",
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
@@ -18648,7 +18648,7 @@ module.exports = function (WaveformBuilder, WaveformShape, Loader, Invoker, Util
18648
18648
  listening: false,
18649
18649
  sceneFunc: function (context, shape) {
18650
18650
  var absX = this.absolutePosition().x;
18651
- if (self._source.textAutoScroll && absX < defaultXOffset) {
18651
+ if (self._source.textAutoScroll) {
18652
18652
  this.offsetX(Math.max(Math.min(0, absX - defaultXOffset), -(maxXOffset - shape.width())));
18653
18653
  }
18654
18654
  defaultWidth = defaultWidth ? defaultWidth : shape.width();
@@ -738,7 +738,7 @@ define([
738
738
  sceneFunc: function(context, shape) {
739
739
  var absX = this.absolutePosition().x;
740
740
 
741
- if (self._source.textAutoScroll && absX < defaultXOffset) {
741
+ if (self._source.textAutoScroll) {
742
742
  this.offsetX(Math.max(Math.min(0, absX - defaultXOffset), -(maxXOffset - shape.width())));
743
743
  }
744
744
  defaultWidth = defaultWidth ? defaultWidth : shape.width();