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
{
"context": "This criteria evaluates how effectively an engineer uses the react-swipeable package to detect and handle the first event in a swipe gesture sequence, particularly focusing on the 'first' property in SwipeEventData and proper lifecycle callback usage.",
"type": "weighted_checklist",
"checklist": [
{
"name": "useSwipeable hook usage",
"description": "Uses the useSwipeable hook from react-swipeable to set up swipe gesture detection",
"max_score": 15
},
{
"name": "onSwiping callback",
"description": "Implements the onSwiping callback to handle continuous swipe movement events during the gesture",
"max_score": 20
},
{
"name": "first property detection",
"description": "Accesses and uses the 'first' property from SwipeEventData to detect the first event in a swipe sequence",
"max_score": 30
},
{
"name": "deltaX and deltaY",
"description": "Reads deltaX and deltaY properties from SwipeEventData to track swipe displacement",
"max_score": 15
},
{
"name": "initial position tracking",
"description": "Accesses the 'initial' property from SwipeEventData to capture the starting coordinates [x, y] of the swipe",
"max_score": 10
},
{
"name": "onSwiped callback",
"description": "Implements the onSwiped callback to handle swipe completion and reset the active swipe state",
"max_score": 10
}
]
}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