public/deck.js/core/deck.core.js in deckrb-0.4.2 vs public/deck.js/core/deck.core.js in deckrb-0.5.0

- old
+ new

@@ -179,11 +179,14 @@ } else if (e.which === options.keys.previous || $.inArray(e.which, options.keys.previous) > -1) { methods.prev(); e.preventDefault(); } - }); + }) + /* Stop propagation of key events within editable elements */ + .undelegate('input, textarea, select, button, meter, progress, [contentEditable]', 'keydown', esp) + .delegate('input, textarea, select, button, meter, progress, [contentEditable]', 'keydown', esp); /* Bind touch events for swiping between slides on touch devices */ $container.unbind('touchstart.deck').bind('touchstart.deck', function(e) { if (!startTouch) { startTouch = $.extend({}, e.originalEvent.targetTouches[0]); @@ -210,13 +213,10 @@ if (startTouch && t.identifier === startTouch.identifier) { startTouch = undefined; } }); }) - .scrollLeft(0).scrollTop(0) - /* Stop propagation of key events within editable elements of slides */ - .undelegate('input, textarea, select, button, meter, progress, [contentEditable]', 'keydown', esp) - .delegate('input, textarea, select, button, meter, progress, [contentEditable]', 'keydown', esp); + .scrollLeft(0).scrollTop(0); /* Kick iframe videos, which dont like to redraw w/ transforms. Remove this if Webkit ever fixes it. */