mirror of
https://github.com/openseadragon/openseadragon.git
synced 2024-11-22 05:06:09 +03:00
Cleanup.
This commit is contained in:
parent
873135b492
commit
01303787ce
@ -50,6 +50,7 @@
|
||||
$.Navigator = function( options ){
|
||||
|
||||
var viewer = options.viewer,
|
||||
_this = this,
|
||||
viewerSize,
|
||||
navigatorSize,
|
||||
unneededElement;
|
||||
@ -217,10 +218,9 @@ $.Navigator = function( options ){
|
||||
|
||||
if (options.navigatorRotate)
|
||||
{
|
||||
var _this = this;
|
||||
options.viewer.addHandler("rotate", function (args) {
|
||||
_setTransformRotate(_this.viewer.navigator.displayRegionContainer, args.degrees);
|
||||
_setTransformRotate(_this.viewer.navigator.displayRegion, -args.degrees);
|
||||
_setTransformRotate(_this.displayRegionContainer, args.degrees);
|
||||
_setTransformRotate(_this.displayRegion, -args.degrees);
|
||||
_this.viewport.setRotation(args.degrees);
|
||||
});
|
||||
|
||||
|
@ -742,7 +742,7 @@ $.Viewport.prototype = /** @lends OpenSeadragon.Viewport.prototype */{
|
||||
* @property {Number} degrees - The number of degrees the rotation was set to.
|
||||
* @property {?Object} userData - Arbitrary subscriber-defined object.
|
||||
*/
|
||||
if (this.viewer.navigator !== null)
|
||||
if (this.viewer !== null)
|
||||
{
|
||||
this.viewer.raiseEvent('rotate', {"degrees": degrees});
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user