5 个仓库
Tools that translate disparate pointer, mouse, and touch events into a unified stream of interaction data.
Distinguishing note: Focuses on unifying disparate input event types into a single stream.
Explore 5 awesome GitHub repositories matching user interface & experience · Input Normalization Utilities. Refine with filters or upvote what's useful.
Hammer.js is a library for recognizing touch gestures in web applications. It functions as a unified interface that translates raw pointer, mouse, and touch inputs into a consistent stream of interaction data, allowing developers to detect patterns such as taps, swipes, and pans across different browsers and hardware. The library distinguishes itself through a modular architecture that uses configurable logic blocks to evaluate input streams against specific mathematical thresholds. It maintains an internal registry of active touch points to track complex multi-finger movements like pinching
Translates disparate pointer, mouse, and touch events into a unified stream of interaction data for consistent gesture processing.
This project is a modular toolkit for building accessible, component-based drag-and-drop interfaces in React. It provides a foundational framework for managing complex spatial interactions, state synchronization, and element registration, allowing developers to create interactive web applications that support mouse, touch, and keyboard inputs. The library distinguishes itself through a highly extensible architecture that separates input handling from interaction logic. It utilizes a sensor-based input abstraction to normalize diverse user interactions and a plugin-driven lifecycle to inject c
Normalizes mouse, touch, and keyboard events into a unified stream of interaction commands.
Lenis is a lightweight JavaScript library designed to provide fluid, momentum-based scrolling experiences for web interfaces. It functions as a frontend utility that decouples visual scroll position from the browser's native state, allowing for custom easing and duration while preserving standard browser accessibility, search functionality, and layout measurement tools. The library distinguishes itself by normalizing input from mouse wheels and touch gestures into a unified stream, ensuring consistent physics across different devices. It operates by intercepting native scroll events and apply
Normalizes mouse wheel and touch gestures into a unified stream for consistent interaction physics.
interact.js 是一个 JavaScript 交互库,用于在 Web 浏览器中实现拖放、调整大小和多点触控手势。它为可缩放矢量图形(SVG)提供了一个专门的交互框架,允许移动和调整这些元素的大小。 该库具有一个多点触控手势引擎,可识别捏合和旋转等复杂模式,以及一个用于将元素对齐到网格或限制在边界内移动的坐标吸附引擎。它还包括一个跨帧状态同步器,用于在多个浏览器窗口或嵌入式帧之间共享交互状态和输入事件。 该项目涵盖了广泛的能力领域,包括用于基于惯性的速度计算的运动物理学,以及用于统一跨浏览器鼠标和触摸事件的输入归一化。附加功能包括基于坐标的状态跟踪和用于将位置和大小对齐到预定义间隔的量化吸附。
Unifies disparate mouse and touch pointer events into a consistent coordinate stream for cross-browser compatibility.
tcell is a Go terminal user interface library and framework for building cell-based applications. It functions as a terminal emulator backend and input processor, utilizing a change-based diffing engine to manage screen state and efficiently render updates. The project is distinguished by its pluggable backend abstraction, which allows terminal interfaces to be rendered across physical terminals or compiled into WebAssembly for web browser display. It provides a virtual screen simulation to enable programmatic event injection and output inspection for automated application testing. Its capab
Normalizes mouse button reporting across different operating systems to ensure consistent event identification.