Methods
note
All Module methods are available in this class.
cancelInertia
Destroys the inertia animation.
const observer = new Swipe({
container: document.getElementById("container")
});
observer.cancelInertia();
destroy
Destroys the instance and cleans up resources.
const observer = new Swipe({
container: document.getElementById("container")
});
observer.destroy();