mirror of
https://github.com/openseadragon/openseadragon.git
synced 2024-11-22 05:06:09 +03:00
Renamed noResizePolling to autoResize
This commit is contained in:
parent
190b4425ed
commit
952fcca46e
@ -56,7 +56,7 @@ OPENSEADRAGON CHANGELOG
|
||||
* Viewer.innerTracker.scrollHandler: preventDefaultAction == true prevents viewer zooming on mousewheel/pinch
|
||||
* Fixed: IE8 error with custom buttons - "Object doesn't support this action" (#279)
|
||||
* Support IIIF servers that don't report tile dimensions (#286)
|
||||
* Added a noResizePolling option. Default is false. When set to true, the viewer takes no action when its container element is resized.
|
||||
* Added a autoResize option. Default is true. When set to false, the viewer takes no action when its container element is resized.
|
||||
|
||||
0.9.131:
|
||||
|
||||
|
@ -174,7 +174,7 @@
|
||||
* image though it is less effective visually if the HTML5 Canvas is not
|
||||
* availble on the viewing device.
|
||||
*
|
||||
* @param {Boolean} [options.noResizePolling=false]
|
||||
* @param {Boolean} [options.autoResize=true]
|
||||
* Set to true to prevent polling for viewer size changes. Useful for providing custom resize behavior.
|
||||
*
|
||||
* @param {Number} [options.visibilityRatio=0.5]
|
||||
@ -535,7 +535,7 @@ window.OpenSeadragon = window.OpenSeadragon || function( options ){
|
||||
minZoomImageRatio: 0.9, //-> closer to 0 allows zoom out to infinity
|
||||
maxZoomPixelRatio: 1.1, //-> higher allows 'over zoom' into pixels
|
||||
pixelsPerWheelLine: 40,
|
||||
noResizePolling: false,
|
||||
autoResize: true,
|
||||
|
||||
//DEFAULT CONTROL SETTINGS
|
||||
showSequenceControl: true, //SEQUENCE
|
||||
|
@ -1657,7 +1657,7 @@ function updateOnce( viewer ) {
|
||||
|
||||
//viewer.profiler.beginUpdate();
|
||||
|
||||
if ( !viewer.noResizePolling ) {
|
||||
if ( viewer.autoResize ) {
|
||||
containerSize = _getSafeElemSize( viewer.container );
|
||||
if ( !containerSize.equals( THIS[ viewer.hash ].prevContainerSize ) ) {
|
||||
// maintain image position
|
||||
|
Loading…
Reference in New Issue
Block a user