1 个仓库
Configurable pixel distances that determine whether a drag gesture snaps a UI element open or closed upon release.
Distinct from Gesture Thresholding: Distinct from Gesture Thresholding: focuses on the snap decision at release rather than general drag distance thresholds for state transitions.
Explore 1 awesome GitHub repository matching user interface & experience · Snap Thresholds. Refine with filters or upvote what's useful.
Snap.js is a JavaScript library for building draggable side navigation panels on touch devices. It enables slide-in menus from the left or right screen edge, driven by a gesture-based state machine that interprets drag and flick gestures to open and close the panel. The library distinguishes horizontal menu drags from vertical scrolling by analyzing the initial touch movement angle, and locks menu movement to a single axis to prevent interference. It uses hardware-accelerated CSS transforms for smooth animations and provides configurable snap thresholds that determine whether a drag should op
Uses configurable pixel thresholds to decide whether a drag should snap the menu open or closed.