INNER CODE UNIT · JavaScript
isMobileUA
NeoAxis/NeoAxisEngine · Project/Sources/NeoAxis.Player.Web/wwwroot/main.js:255
const isMobileUA = /Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(ua);
const isAndroidTabletDesktopMode = /Linux/i.test(navigator.platform) && navigator.maxTouchPoints > 1;
const isIPadDesktopMode = navigator.platform === 'MacIntel' && navigator.maxTouchPoints > 1;
mobileDevice = isMobileUA || isAndroidTabletDesktopMode || isIPadDesktopMode;
}
interop.SetSystemSettings(mobileDevice);
let currentWidth = 0;
let currentHeight = 0;
let currentFullscreen = null;
let cachedRect = null;
const invalidateCanvasRect = () =>
{
cachedRect = null;
}
const getCanvasRect = () =>