Bigger + and - zoom buttons on touch devices
This commit is contained in:
@@ -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_);
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user