Fix for touches on ios platform (bug 45844)

This commit is contained in:
Oleg Korshul
2020-07-16 13:40:19 +03:00
parent 6425cd6316
commit 60050ffe8f
2 changed files with 25 additions and 4 deletions

6
vendor/iscroll.js vendored
View File

@ -81,13 +81,15 @@ var utils = (function () {
};
var _transform = _prefixStyle('transform');
var _hasPointer = AscCommon.AscBrowser.isIE ? ((!('ontouchstart' in window)) && (!!(window.PointerEvent || window.MSPointerEvent))) : false;
if (AscCommon.AscBrowser.isAppleDevices && AscCommon.AscBrowser.iosVersion >= 13)
_hasPointer = true;
me.extend(me, {
hasTransform: _transform !== false,
hasPerspective: _prefixStyle('perspective') in _elementStyle,
hasTouch: 'ontouchstart' in window,
//hasPointer: false,//(!('ontouchstart' in window)) && (!!(window.PointerEvent || window.MSPointerEvent)), // IE10 is prefixed
hasPointer: AscCommon.AscBrowser.isIE ? ((!('ontouchstart' in window)) && (!!(window.PointerEvent || window.MSPointerEvent))) : false,
hasPointer: _hasPointer,
hasTransition: _prefixStyle('transition') in _elementStyle
});