3 ms·
Darn, it crashes Safari on my iPad. Ironic given that the iDevices are the ones providing onus to developers to use HTML5 in the first place. /-:
by DLWormwood 16y ago
Darn, it crashes Safari on my iPad. Ironic given that the iDevices are the ones providing onus to developers to use HTML5 in the first place. /-:
- eelco 16y agoWorks pretty well on my iPhone though. It totally breaks the back button, but I love that I can swipe left and right to navigate.
- sjs 16y agoTry rotating. That reliably crashed Safari on iPhone and iPad for me. If it hadn't crashed for some other reason. When it didn't crash it did strange things like display things from later slides on the first slide when it was loading. Hopefully some geeks at Apple have seen this and are already fixing bugs that it uncovers.
- audionerd 16y agoWow, really? I didn't realize you could swipe in this presentation. Looks like this was all it took to implement? var addTouchListeners = function() { document.addEventListener('touchstart', function(e) { touchStartX = e.touches[0].pageX; }, false); document.addEventListener('touchend', function(e) { var pixelsMoved = touchStartX - e.changedTouches[0].pageX; var SWIPE_SIZE = 150; if (pixelsMoved > SWIPE_SIZE) { nextSlide(); } else if (pixelsMoved < -SWIPE_SIZE) { prevSlide(); } }, false); };