Turn on GPU support for all children of the layerContainerDiv

This seems to remove all kinds of flicker and jumpiness, and to me it feels
also like it makes panning on slow mobile devices smoother.
This commit is contained in:
ahocevar
2012-12-11 23:23:08 +01:00
parent 44f28f8791
commit 64d291ea20
2 changed files with 7 additions and 2 deletions

View File

@@ -487,6 +487,13 @@ a.olControlZoomOut {
transition: opacity 0.2s linear;
}
.olTileImage, .olLayerDiv {
-webkit-transform: translate3d(0, 0, 0);
-moz-transform: translate3d(0, 0, 0);
-o-transform: translate3d(0, 0, 0);
transform: translate3d(0, 0, 0);
}
/* override any max-width image settings (e.g. bootstrap.css) */
img.olTileImage {
max-width: none;