mirror of
https://github.com/openseadragon/openseadragon.git
synced 2025-01-18 16:51:48 +03:00
commit
07502e6d58
@ -2542,8 +2542,7 @@ $.extend( $.Viewer.prototype, $.EventSource.prototype, $.ControlDock.prototype,
|
|||||||
},
|
},
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Update pixel density ratio, clears all tiles and triggers updates for
|
* Update pixel density ratio and forces a resize operation.
|
||||||
* all items if the ratio has changed.
|
|
||||||
* @private
|
* @private
|
||||||
*/
|
*/
|
||||||
_updatePixelDensityRatio: function() {
|
_updatePixelDensityRatio: function() {
|
||||||
@ -2551,8 +2550,7 @@ $.extend( $.Viewer.prototype, $.EventSource.prototype, $.ControlDock.prototype,
|
|||||||
var currentPixelDensityRatio = $.getCurrentPixelDensityRatio();
|
var currentPixelDensityRatio = $.getCurrentPixelDensityRatio();
|
||||||
if (previusPixelDensityRatio !== currentPixelDensityRatio) {
|
if (previusPixelDensityRatio !== currentPixelDensityRatio) {
|
||||||
$.pixelDensityRatio = currentPixelDensityRatio;
|
$.pixelDensityRatio = currentPixelDensityRatio;
|
||||||
this.world.resetItems();
|
this.forceResize();
|
||||||
this.forceRedraw();
|
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user