Merge pull request #548 from elemoine/zoom-css

Bigger + and - zoom buttons on touch devices
This commit is contained in:
Éric Lemoine
2013-04-15 03:44:47 -07:00
2 changed files with 9 additions and 0 deletions

View File

@@ -207,6 +207,9 @@ ol.Map = function(options) {
this.viewport_.style.height = '100%';
// prevent page zoom on IE >= 10 browsers
this.viewport_.style.msTouchAction = 'none';
if (ol.BrowserFeature.HAS_TOUCH) {
this.viewport_.className = 'ol-touch';
}
goog.dom.appendChild(this.target_, this.viewport_);
/**