INNER CODE UNIT · JavaScript

isAndroidTabletDesktopMode

NeoAxis/NeoAxisEngine · Project/Sources/NeoAxis.Player.Web/wwwroot/main.js:256

			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 = () =>
		{

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…