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 handles swipe gestures on a UI element that is visually rotated by 45 degrees. The component should correctly detect swipe directions relative to the rotated interface, not the screen coordinates.
Create a React component called RotatedSwipePanel that:
@generates
/**
* A React component that displays a rotated panel with swipe gesture detection
* The swipe directions are relative to the panel's rotated coordinate system
*/
export default function RotatedSwipePanel(): JSX.Element;Provides React framework for building the component.
Provides swipe gesture detection with rotation angle support.
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