always kill touch events on removelisteners (#365)
This commit is contained in:
parent
e74a10e364
commit
4ff462078b
|
@ -471,7 +471,6 @@ var Reveal = (function(){
|
||||||
window.removeEventListener( 'hashchange', onWindowHashChange, false );
|
window.removeEventListener( 'hashchange', onWindowHashChange, false );
|
||||||
window.removeEventListener( 'resize', onWindowResize, false );
|
window.removeEventListener( 'resize', onWindowResize, false );
|
||||||
|
|
||||||
if( config.touch ) {
|
|
||||||
dom.wrapper.removeEventListener( 'touchstart', onTouchStart, false );
|
dom.wrapper.removeEventListener( 'touchstart', onTouchStart, false );
|
||||||
dom.wrapper.removeEventListener( 'touchmove', onTouchMove, false );
|
dom.wrapper.removeEventListener( 'touchmove', onTouchMove, false );
|
||||||
dom.wrapper.removeEventListener( 'touchend', onTouchEnd, false );
|
dom.wrapper.removeEventListener( 'touchend', onTouchEnd, false );
|
||||||
|
@ -481,7 +480,6 @@ var Reveal = (function(){
|
||||||
dom.wrapper.removeEventListener( 'MSPointerMove', onPointerMove, false );
|
dom.wrapper.removeEventListener( 'MSPointerMove', onPointerMove, false );
|
||||||
dom.wrapper.removeEventListener( 'MSPointerUp', onPointerUp, false );
|
dom.wrapper.removeEventListener( 'MSPointerUp', onPointerUp, false );
|
||||||
}
|
}
|
||||||
}
|
|
||||||
|
|
||||||
if ( config.progress && dom.progress ) {
|
if ( config.progress && dom.progress ) {
|
||||||
dom.progress.removeEventListener( 'click', onProgressClicked, false );
|
dom.progress.removeEventListener( 'click', onProgressClicked, false );
|
||||||
|
|
4
js/reveal.min.js
vendored
4
js/reveal.min.js
vendored
File diff suppressed because one or more lines are too long
Loading…
Reference in New Issue
Block a user