Incorporating @elemoine's review comments

This commit is contained in:
ahocevar
2013-02-14 10:11:48 +01:00
parent 774e983631
commit d0249643b3
4 changed files with 74 additions and 15 deletions

View File

@@ -2399,7 +2399,7 @@ OpenLayers.Map = OpenLayers.Class({
// update the end scale, and reuse the running zoomTween
map.zoomTween.finish = {
scale: map.zoomTween.finish.scale * end.scale
}
};
} else {
if (!xy) {
var size = map.getSize();
@@ -2805,7 +2805,8 @@ OpenLayers.Map = OpenLayers.Class({
if (transform) {
// Try translate3d, but only if the viewPortDiv has a transform
// defined in a stylesheet
var computedStyle = OpenLayers.Element.getStyle(this.viewPortDiv, OpenLayers.Util.vendorPrefix.css('transform'));
var computedStyle = OpenLayers.Element.getStyle(this.viewPortDiv,
OpenLayers.Util.vendorPrefix.css('transform'));
if (!computedStyle || computedStyle !== 'none') {
template = ['translate3d(', ',0) ', 'scale3d(', ',1)'];
style[transform] = [template[0], '0,0', template[1]].join('');