Merge pull request #1742 from greggarson/respect-use-canvas-in-thumbnail-viewers

Pass useCanvas value down to reference strip viewers.
This commit is contained in:
Ian Gilman 2019-11-20 14:16:49 -08:00 committed by GitHub
commit 9767c027ba
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 3 additions and 1 deletions

View File

@ -451,7 +451,8 @@ function loadPanels( strip, viewerSize, scroll ) {
blendTime: 0,
animationTime: 0,
loadTilesWithAjax: strip.viewer.loadTilesWithAjax,
ajaxHeaders: strip.viewer.ajaxHeaders
ajaxHeaders: strip.viewer.ajaxHeaders,
useCanvas: strip.useCanvas
} );
miniViewer.displayRegion = $.makeNeutralElement( "div" );

View File

@ -2227,6 +2227,7 @@ $.extend( $.Viewer.prototype, $.EventSource.prototype, $.ControlDock.prototype,
width: this.referenceStripWidth,
tileSources: this.tileSources,
prefixUrl: this.prefixUrl,
useCanvas: this.useCanvas,
viewer: this
});