same condition order when event listeners are added and removed
parent
916bfb4c30
commit
e8c7e8eddb
14
js/reveal.js
14
js/reveal.js
|
@ -703,18 +703,18 @@ var Reveal = (function(){
|
||||||
dom.wrapper.removeEventListener( 'touchmove', onTouchMove, false );
|
dom.wrapper.removeEventListener( 'touchmove', onTouchMove, false );
|
||||||
dom.wrapper.removeEventListener( 'touchend', onTouchEnd, false );
|
dom.wrapper.removeEventListener( 'touchend', onTouchEnd, false );
|
||||||
|
|
||||||
// IE10
|
|
||||||
if( window.navigator.msPointerEnabled ) {
|
|
||||||
dom.wrapper.removeEventListener( 'MSPointerDown', onPointerDown, false );
|
|
||||||
dom.wrapper.removeEventListener( 'MSPointerMove', onPointerMove, false );
|
|
||||||
dom.wrapper.removeEventListener( 'MSPointerUp', onPointerUp, false );
|
|
||||||
}
|
|
||||||
// IE11
|
// IE11
|
||||||
else if( window.navigator.pointerEnabled ) {
|
if( window.navigator.pointerEnabled ) {
|
||||||
dom.wrapper.removeEventListener( 'pointerdown', onPointerDown, false );
|
dom.wrapper.removeEventListener( 'pointerdown', onPointerDown, false );
|
||||||
dom.wrapper.removeEventListener( 'pointermove', onPointerMove, false );
|
dom.wrapper.removeEventListener( 'pointermove', onPointerMove, false );
|
||||||
dom.wrapper.removeEventListener( 'pointerup', onPointerUp, false );
|
dom.wrapper.removeEventListener( 'pointerup', onPointerUp, false );
|
||||||
}
|
}
|
||||||
|
// IE10
|
||||||
|
else if( window.navigator.msPointerEnabled ) {
|
||||||
|
dom.wrapper.removeEventListener( 'MSPointerDown', onPointerDown, false );
|
||||||
|
dom.wrapper.removeEventListener( 'MSPointerMove', onPointerMove, 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 );
|
||||||
|
|
File diff suppressed because one or more lines are too long
Loading…
Reference in New Issue