Fix flickering tiles with useCanvas=false when no cache is used. Fix #661

This commit is contained in:
Antoine Vandecreme 2015-06-03 13:52:19 -04:00
parent be657c0b3d
commit 2674104007
2 changed files with 2 additions and 2 deletions

View File

@ -4,6 +4,7 @@ OPENSEADRAGON CHANGELOG
2.0.1: (in progress)
* BREAKING CHANGE: the tile does not hold a reference to its image anymore. Only the tile cache keep a reference to images.
* DEPRECATION: let ImageRecord.getRenderedContext create the rendered context instead of using ImageRecord.setRenderedContext.
* Fix flickering tiles with useCanvas=false when no cache is used. (#661)
2.0.0:

View File

@ -210,8 +210,7 @@ $.Tile.prototype = /** @lends OpenSeadragon.Tile.prototype */{
if ( !this.element ) {
this.element = $.makeNeutralElement( "div" );
this.imgElement = $.makeNeutralElement( "img" );
this.imgElement.src = this.url;
this.imgElement = this.cacheImageRecord.getImage().cloneNode();
this.imgElement.style.msInterpolationMode = "nearest-neighbor";
this.imgElement.style.width = "100%";
this.imgElement.style.height = "100%";