CtrlK
BlogDocsLog inGet started
Tessl Logo

tessl/npm-react-swipeable

React hook for handling swipe gestures on touch devices and mouse interactions with comprehensive directional callbacks and customizable sensitivity settings

90

1.00x
Quality

Pending

Does it follow best practices?

Impact

90%

1.00x

Average score across 10 eval scenarios

SecuritybySnyk

Pending

The risk profile of this skill

Overview
Eval results
Files

criteria.jsonevals/scenario-5/

{
  "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
    }
  ]
}

tile.json