React hook for handling swipe gestures on touch devices and mouse interactions with comprehensive directional callbacks and customizable sensitivity settings
90
Evaluation — 90%
↑ 1.00xAgent success when using this tile
Build a React component that demonstrates asymmetric swipe sensitivity across different directions to create a more intuitive user interface for a mobile game menu.
Create a swipeable menu panel component where:
Specifically:
@generates
/**
* A swipeable menu component with direction-specific sensitivity thresholds.
*
* @returns {JSX.Element} A React component that detects swipes with different thresholds per direction
*/
function SwipeMenu() {
// IMPLEMENTATION HERE
}
export default SwipeMenu;Provides swipe gesture detection with configurable sensitivity per direction.
Install with Tessl CLI
npx tessl i tessl/npm-react-swipeabledocs
evals
scenario-1
scenario-2
scenario-3
scenario-4
scenario-5
scenario-6
scenario-7
scenario-8
scenario-9
scenario-10