event.preventDefault not working for stopping slide propagation
nicohvi opened this issue · comments
Nicolay Hvidsten commented
I have a weird problem. After downloading the code and running boilerplate.html
in Chrome, I added the following code inside the <script>
tags at the bottom:
$(function() {
$.deck('.slide');
// new code
$(document).bind('deck.change', function(event, from, to){
event.preventDefault();
});
});
However, the deck continues to slide whenever I invoke the 'next' method, what gives?
Caleb Troughton commented