Improve performance when not using transitions by not forcing a reflow,
which can slow rendering significantly when many layers are in place. git-svn-id: http://svn.openlayers.org/trunk/openlayers@6638 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
This commit is contained in:
@@ -394,9 +394,12 @@ OpenLayers.Tile.Image = OpenLayers.Class(OpenLayers.Tile, {
|
|||||||
this.frame.style.display = '';
|
this.frame.style.display = '';
|
||||||
// Force a reflow on gecko based browsers to actually show the element
|
// Force a reflow on gecko based browsers to actually show the element
|
||||||
// before continuing execution.
|
// before continuing execution.
|
||||||
if (navigator.userAgent.toLowerCase().indexOf("gecko") != -1) {
|
if (OpenLayers.Util.indexOf(this.layer.SUPPORTED_TRANSITIONS,
|
||||||
this.frame.scrollLeft = this.frame.scrollLeft;
|
this.layer.transitionEffect) != -1) {
|
||||||
}
|
if (navigator.userAgent.toLowerCase().indexOf("gecko") != -1) {
|
||||||
|
this.frame.scrollLeft = this.frame.scrollLeft;
|
||||||
|
}
|
||||||
|
}
|
||||||
},
|
},
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|||||||
Reference in New Issue
Block a user