Remove TODO

This commit is contained in:
Antoine Vandecreme 2016-10-23 18:25:14 +02:00
parent 5bfccec7a3
commit 77310b0229

View File

@ -959,7 +959,7 @@ $.extend($.TiledImage.prototype, $.EventSource.prototype, /** @lends OpenSeadrag
var targetRenderPixelRatio = viewport.deltaPixelsFromPointsNoRotate( var targetRenderPixelRatio = viewport.deltaPixelsFromPointsNoRotate(
this.source.getPixelRatio(level), this.source.getPixelRatio(level),
false false
).x * this._scaleSpring.current.value; //TODO: shouldn't that be target.value? ).x * this._scaleSpring.current.value;
var targetZeroRatio = viewport.deltaPixelsFromPointsNoRotate( var targetZeroRatio = viewport.deltaPixelsFromPointsNoRotate(
this.source.getPixelRatio( this.source.getPixelRatio(
@ -969,7 +969,7 @@ $.extend($.TiledImage.prototype, $.EventSource.prototype, /** @lends OpenSeadrag
) )
), ),
false false
).x * this._scaleSpring.current.value; //TODO: shouldn't that be target.value? ).x * this._scaleSpring.current.value;
var optimalRatio = this.immediateRender ? 1 : targetZeroRatio; var optimalRatio = this.immediateRender ? 1 : targetZeroRatio;
var levelOpacity = Math.min(1, (currentRenderPixelRatio - 0.5) / 0.5); var levelOpacity = Math.min(1, (currentRenderPixelRatio - 0.5) / 0.5);