mirror of
https://github.com/openseadragon/openseadragon.git
synced 2025-01-18 08:41:45 +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
|
||||
* all items if the ratio has changed.
|
||||
* Update pixel density ratio and forces a resize operation.
|
||||
* @private
|
||||
*/
|
||||
_updatePixelDensityRatio: function() {
|
||||
@ -2551,8 +2550,7 @@ $.extend( $.Viewer.prototype, $.EventSource.prototype, $.ControlDock.prototype,
|
||||
var currentPixelDensityRatio = $.getCurrentPixelDensityRatio();
|
||||
if (previusPixelDensityRatio !== currentPixelDensityRatio) {
|
||||
$.pixelDensityRatio = currentPixelDensityRatio;
|
||||
this.world.resetItems();
|
||||
this.forceRedraw();
|
||||
this.forceResize();
|
||||
}
|
||||
},
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user