src/viewer.js
function beginControlsAutoHide( viewer ) {
    if ( !viewer.autoHideControls ) {
        return;
    }
    viewer.controlsShouldFade = true;
    viewer.controlsFadeBeginTime =
        $.now() +
        viewer.controlsFadeDelay;

    window.setTimeout( function(){
        scheduleControlsFade( viewer );
    }, viewer.controlsFadeDelay );
}
function beginControlsAutoHide( viewer ) {
    if ( !viewer.autoHideControls ) {
        return;
    }
    viewer.controlsShouldFade = true;
    viewer.controlsFadeBeginTime =
        $.now() +
        viewer.controlsFadeDelay;

    window.setTimeout( function(){
        scheduleControlsFade( viewer );
    }, viewer.controlsFadeDelay );
}
function beginControlsAutoHide ( viewer ) { if ( ! viewer . autoHideControls ) { return ; } viewer . controlsShouldFade = true ; viewer . controlsFadeBeginTime = $ . now ( ) + viewer . controlsFadeDelay ; window . setTimeout ( function ( ) { scheduleControlsFade ( viewer ) ; } , viewer . controlsFadeDelay ) ; }
initiates an animation to hide the controls
initiates an animation to hide the controls