Closed hashworks closed 9 years ago
This way I can do
var dragend = new Dragend(document.getElementById('content'), { 'onSwipeStart': function(container, activeElement, page, direction) { if (direction == 'left' || direction == 'down') { page = page + 1; } else if (direction == 'right' || direction == 'up') { page = page - 1; } else { return; } doSomethingToTargetPage(page); } });
This way I can do