1 个仓库
Event-driven mechanisms that monitor and react to device orientation changes between portrait and landscape modes.
Distinct from Inertial Orientation Tracking: None of the candidates cover browser-level orientation event listening; they focus on game entity rotation or IMU sensors.
Explore 1 awesome GitHub repository matching user interface & experience · Orientation Change Listeners. Refine with filters or upvote what's useful.
current-device 是一个 JavaScript 设备检测库,用于在 Web 浏览器环境中识别操作系统、设备类别和屏幕方向。它作为一个浏览器环境检测器和客户端映射器,将浏览器元数据和用户代理字符串转换为预定义的设备标签和硬件类别。 该库提供了根据检测到的移动或桌面平台执行特定 JavaScript 逻辑的工具。它还作为条件样式工具和文档主体类注入器,应用描述性 HTML 类以实现设备特定的视觉样式。 该系统包括一个屏幕方向监控器,用于实时检测并响应纵向和横向模式之间的变化。它涵盖了用户代理解析、跨平台 Web 适配和响应式方向处理的通用功能。
Listens for window resize or orientation change events to trigger immediate updates to the environment state.