mirror of
https://github.com/ONLYOFFICE/sdkjs.git
synced 2026-04-07 14:09:12 +08:00
Fix for touches on ios platform (bug 45844)
This commit is contained in:
6
vendor/iscroll.js
vendored
6
vendor/iscroll.js
vendored
@ -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
|
||||
});
|
||||
|
||||
|
||||
Reference in New Issue
Block a user