TOUCH & GESTURES / iOS / NATIVESCRIPT VUE
Let it find its place.
Drag, release and settle into the next snap point.
The motion behind it.
Jolt 0.1.0-rc.11The core API example, taken directly from the guide. Use the full demo for the surrounding interface and controls.
TypeScript · NativeScript
import { drag } from '@rafaelaugusto/jolt'
const panel = drag(sheet, {
axis: 'y',
bounds: { top: 0, bottom: 600 },
snap: [0, 300, 600],
rubberband: true,
})
panel.dispose()