Commit 981877ff authored by Oleg Korshul's avatar Oleg Korshul

mobile web: work on edge & ie (windows 10)

parent 63159655
...@@ -86,7 +86,8 @@ var utils = (function () { ...@@ -86,7 +86,8 @@ var utils = (function () {
hasTransform: _transform !== false, hasTransform: _transform !== false,
hasPerspective: _prefixStyle('perspective') in _elementStyle, hasPerspective: _prefixStyle('perspective') in _elementStyle,
hasTouch: 'ontouchstart' in window, hasTouch: 'ontouchstart' in window,
hasPointer: false,//(!('ontouchstart' in window)) && (!!(window.PointerEvent || window.MSPointerEvent)), // IE10 is prefixed //hasPointer: false,//(!('ontouchstart' in window)) && (!!(window.PointerEvent || window.MSPointerEvent)), // IE10 is prefixed
hasPointer: AscCommon.AscBrowser.isIE ? ((!('ontouchstart' in window)) && (!!(window.PointerEvent || window.MSPointerEvent))) : false,
hasTransition: _prefixStyle('transition') in _elementStyle hasTransition: _prefixStyle('transition') in _elementStyle
}); });
......
...@@ -390,6 +390,12 @@ ...@@ -390,6 +390,12 @@
_elem2.style.bottom = "0px"; _elem2.style.bottom = "0px";
_elem2.style.width = "100%"; _elem2.style.width = "100%";
_elem2.style.height = "100%"; _elem2.style.height = "100%";
if (AscCommon.AscBrowser.isIE)
{
document.body.style["msTouchAction"] = "none";
document.body.style["touchAction"] = "none";
}
} }
}, },
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment