always kill touch events on removelisteners (#365)
This commit is contained in:
parent
e74a10e364
commit
4ff462078b
16
js/reveal.js
16
js/reveal.js
|
@ -471,16 +471,14 @@ 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 );
|
|
||||||
|
|
||||||
if( window.navigator.msPointerEnabled ) {
|
if( window.navigator.msPointerEnabled ) {
|
||||||
dom.wrapper.removeEventListener( 'MSPointerDown', onPointerDown, false );
|
dom.wrapper.removeEventListener( 'MSPointerDown', onPointerDown, false );
|
||||||
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 ) {
|
||||||
|
|
File diff suppressed because one or more lines are too long
Loading…
Reference in New Issue