console.js
/**
     * Handle touchend and mouseup events.
     * @param  {object} eventTouchEnd               Event properties
     */
Handle touchend and mouseup events.
@param  {object} eventTouchEnd               Event properties
Handle touchend and mouseup events . @param { object } eventTouchEnd Event properties
function handleTouchEnd(eventTouchEnd) {
        if(
            momentButtonWasPressed &&
            (new Date()).getTime() - momentButtonWasPressed < buttonPressThreshold
        ) {
            document.querySelector('#debug').classList.remove('collapsed');
            eventTouchEnd.target.classList.add('hidden');
        }
        btnOpenConsole.classList.remove('dragging');
        momentButtonWasPressed = null;
        touchId = null;
        document.removeEventListener('touchmove', handleTouchMove);
        document.removeEventListener('mousemove', handleTouchMove);
    }
function handleTouchEnd ( eventTouchEnd ) { if ( momentButtonWasPressed && ( new Date ( ) ) . getTime ( ) - momentButtonWasPressed < buttonPressThreshold ) { document . querySelector ( '#debug' ) . classList . remove ( 'collapsed' ) ; eventTouchEnd . target . classList . add ( 'hidden' ) ; } btnOpenConsole . classList . remove ( 'dragging' ) ; momentButtonWasPressed = null ; touchId = null ; document . removeEventListener ( 'touchmove' , handleTouchMove ) ; document . removeEventListener ( 'mousemove' , handleTouchMove ) ; }
Handle touchend and mouseup events.
Handle touchend and mouseup events .