set initial navigator animation time to viewport's

This commit is contained in:
jonasengelmann 2022-03-31 23:45:46 +02:00
parent ef8e7ad9c5
commit c2821b1775
2 changed files with 3 additions and 2 deletions

View File

@ -107,7 +107,7 @@ $.Navigator = function( options ){
showSequenceControl: false,
immediateRender: true,
blendTime: 0,
animationTime: 0,
animationTime: options.animationTime,
autoResize: options.autoResize,
// prevent resizing the navigator from adding unwanted space around the image
minZoomImageRatio: 1.0,

View File

@ -448,7 +448,8 @@ $.Viewer = function( options ) {
opacity: this.navigatorOpacity,
borderColor: this.navigatorBorderColor,
displayRegionColor: this.navigatorDisplayRegionColor,
crossOriginPolicy: this.crossOriginPolicy
crossOriginPolicy: this.crossOriginPolicy,
animationTime: this.animationTime,
});
}