I'm using Hammer.js to allow for dragging between panes. I also want to allow an alternate action where there's also a "Next" button you can click on (with a mouse) or touch (on touchscreen), that will automatically animate a slide to the next screen.
Imagine the Hammer.js Carousel demo with a "next" button in the middle of the page. When you click, it acts as if you did a slideleft to take you to the next pane.
I figured I should be able to trigger with something like:
var hammertime = Hammer('button.next-button').on("tap", function(event) {
self.next();
});
That only seems to put my mouse into drag mode, rather than executing the whole animation.