Merge pull request #4107 from fredj/touchAction

Prevent page zoom on IE Edge
This commit is contained in:
Frédéric Junod committed 2015-09-14 13:54:49 +02:00
commit a6f16e58e5
1 file changed
+1
+1
View File
@@ -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');
}