edge smoothing fix for Mac

This commit is contained in:
Petar Petrov 2015-11-19 10:06:43 +02:00
parent 7406727090
commit 9922d2a4bb

View File

@ -356,6 +356,7 @@ $.Tile.prototype = /** @lends OpenSeadragon.Tile.prototype */{
// to the main canvas. And FF does not like it. It crashes the viewer. // to the main canvas. And FF does not like it. It crashes the viewer.
return new $.Point(1, 1).minus( return new $.Point(1, 1).minus(
this.position this.position
.times($.pixelDensityRatio)
.times(scale || 1) .times(scale || 1)
.apply(function(x) { .apply(function(x) {
return x % 1; return x % 1;