From 2f174ad5526d473a31807f6da1b52ed316df4a81 Mon Sep 17 00:00:00 2001 From: Tom Date: Tue, 15 Nov 2022 23:51:44 -0500 Subject: [PATCH] updated rotateBy --- src/viewport.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/viewport.js b/src/viewport.js index 97e32372..df8caecb 100644 --- a/src/viewport.js +++ b/src/viewport.js @@ -1026,14 +1026,14 @@ $.Viewport.prototype = { * Rotates this viewport by the angle specified. * @function * @param {Number} degrees The degrees by which to rotate the viewport. - * @param {Boolean} [immediately=false] Whether to animate to the new angle - * or rotate immediately. * @param {OpenSeadragon.Point} [pivot] (Optional) point in viewport coordinates * around which the rotation should be performed. Defaults to the center of the viewport. + * * @param {Boolean} [immediately=false] Whether to animate to the new angle + * or rotate immediately. * @returns {OpenSeadragon.Viewport} Chainable. */ rotateBy: function(degrees, pivot, immediately){ - return this.setRotation(this.degreesSpring.target.value + degrees, immediately, pivot); + return this.rotateTo(this.degreesSpring.target.value + degrees, pivot, immediately); }, /**