Merge pull request #4107 from fredj/touchAction
Prevent page zoom on IE Edge
This commit is contained in:
@@ -267,6 +267,7 @@ ol.Map = function(options) {
|
||||
this.viewport_.style.height = '100%';
|
||||
// prevent page zoom on IE >= 10 browsers
|
||||
this.viewport_.style.msTouchAction = 'none';
|
||||
this.viewport_.style.touchAction = 'none';
|
||||
if (ol.has.TOUCH) {
|
||||
goog.dom.classlist.add(this.viewport_, 'ol-touch');
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user