diff --git a/src/viewport.js b/src/viewport.js index 2df47df9..8d511602 100644 --- a/src/viewport.js +++ b/src/viewport.js @@ -533,6 +533,7 @@ $.Viewport.prototype = { } else { horizontalThreshold = this.visibilityRatio * newBounds.width; } + leftDx = this._contentBoundsNoRotate.x - boundsRight + horizontalThreshold; rightDx = contentRight - newBounds.x - horizontalThreshold; if (horizontalThreshold > this._contentBoundsNoRotate.width) {