Merge pull request #157 from fredj/ms-touch
Direct all pointer events to js code (IE pointer events) see: http://msdn.microsoft.com/en-us/library/ie/hh673557(v=vs.85).aspx
This commit is contained in:
@@ -15,5 +15,6 @@ ol.BrowserFeature = {
|
||||
* @type {boolean} True if browser supports touch events
|
||||
*/
|
||||
HAS_TOUCH: ol.ASSUME_TOUCH ||
|
||||
(document && 'ontouchstart' in document.documentElement)
|
||||
(document && 'ontouchstart' in document.documentElement) ||
|
||||
!!(window.navigator.msPointerEnabled)
|
||||
};
|
||||
|
||||
@@ -189,6 +189,7 @@ ol.Map = function(mapOptions) {
|
||||
this.viewport_.style.overflow = 'hidden';
|
||||
this.viewport_.style.width = '100%';
|
||||
this.viewport_.style.height = '100%';
|
||||
this.viewport_.style.msTouchAction = 'none';
|
||||
goog.dom.appendChild(this.target_, this.viewport_);
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user