Merge pull request #1200 from LarissaSmith/master

Clamp device pixel ratio to a minimum of 1 for calculating pixelDensi…
This commit is contained in:
Ian Gilman 2017-05-19 10:02:50 -07:00 committed by GitHub
commit 8fe682f966

View File

@ -888,7 +888,7 @@ function OpenSeadragon( options ){
context.msBackingStorePixelRatio || context.msBackingStorePixelRatio ||
context.oBackingStorePixelRatio || context.oBackingStorePixelRatio ||
context.backingStorePixelRatio || 1; context.backingStorePixelRatio || 1;
return devicePixelRatio / backingStoreRatio; return Math.max(devicePixelRatio, 1) / backingStoreRatio;
} else { } else {
return 1; return 1;
} }