Rewrite PinchZoom to detect vendor-prefix, so it works in more browsers
This commit is contained in:
@@ -162,8 +162,10 @@ OpenLayers.Control.PinchZoom = OpenLayers.Class(OpenLayers.Control, {
|
|||||||
*/
|
*/
|
||||||
applyTransform: function(transform) {
|
applyTransform: function(transform) {
|
||||||
var style = this.map.layerContainerDiv.style;
|
var style = this.map.layerContainerDiv.style;
|
||||||
style['-webkit-transform'] = transform;
|
var transformProperty = OpenLayers.Util.getVendorPrefixedDom("transform");
|
||||||
style['-moz-transform'] = transform;
|
if (transformProperty) {
|
||||||
|
style[transformProperty] = transform;
|
||||||
|
}
|
||||||
},
|
},
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|||||||
Reference in New Issue
Block a user