always kill touch events on removelisteners (#365)

This commit is contained in:
Hakim El Hattab 2013-03-17 18:21:03 -04:00
parent e74a10e364
commit 4ff462078b
2 changed files with 9 additions and 11 deletions

View File

@ -471,7 +471,6 @@ var Reveal = (function(){
window.removeEventListener( 'hashchange', onWindowHashChange, false );
window.removeEventListener( 'resize', onWindowResize, false );
if( config.touch ) {
dom.wrapper.removeEventListener( 'touchstart', onTouchStart, false );
dom.wrapper.removeEventListener( 'touchmove', onTouchMove, false );
dom.wrapper.removeEventListener( 'touchend', onTouchEnd, false );
@ -481,7 +480,6 @@ var Reveal = (function(){
dom.wrapper.removeEventListener( 'MSPointerMove', onPointerMove, false );
dom.wrapper.removeEventListener( 'MSPointerUp', onPointerUp, false );
}
}
if ( config.progress && dom.progress ) {
dom.progress.removeEventListener( 'click', onProgressClicked, false );

4
js/reveal.min.js vendored

File diff suppressed because one or more lines are too long