All files / src/motion/features drag.ts

100% Statements 4/4
100% Branches 0/0
100% Functions 0/0
100% Lines 4/4

Press n or j to go to the next uncovered block, b, p or k for the previous block.

1 2 3 4 5 6 7 8 9 1033x 33x 33x     33x        
import { useDrag } from "../../gestures/drag/use-drag"
import { usePanGesture } from "../../gestures/use-pan-gesture"
import { makeRenderlessComponent } from "../utils/make-renderless-component"
import { FeatureComponents } from "./types"
 
export const drag: FeatureComponents = {
    pan: makeRenderlessComponent(usePanGesture),
    drag: makeRenderlessComponent(useDrag),
}