targetj 1.1.2 → 1.1.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.
@@ -957,10 +957,9 @@ var ParticleRenderer = /*#__PURE__*/function () {
957
957
  key: "getParticlePosition",
958
958
  value: function getParticlePosition(child) {
959
959
  var values = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : child === null || child === void 0 ? void 0 : child.actualValues;
960
- var scroll = this.tmodel.getUnappliedScroll();
961
960
  return {
962
- x: child.allTargetMap.x ? values.x : child.x + scroll.x,
963
- y: child.allTargetMap.y ? values.y : child.y + scroll.y
961
+ x: child.allTargetMap.x ? values.x : child.x,
962
+ y: child.allTargetMap.y ? values.y : child.y
964
963
  };
965
964
  }
966
965
  }, {
@@ -140,8 +140,8 @@ var VisibilityUtil = /*#__PURE__*/function () {
140
140
  var modelTop = (_tmodel$getScrollTop = tmodel.getScrollTop()) !== null && _tmodel$getScrollTop !== void 0 ? _tmodel$getScrollTop : 0;
141
141
  var modelLeft = (_tmodel$getScrollLeft = tmodel.getScrollLeft()) !== null && _tmodel$getScrollLeft !== void 0 ? _tmodel$getScrollLeft : 0;
142
142
  return {
143
- x: Math.max(0, domLeft - modelLeft),
144
- y: Math.max(0, domTop - modelTop)
143
+ x: modelLeft - domLeft,
144
+ y: modelTop - domTop
145
145
  };
146
146
  }
147
147
  }]);