unbindEvents()
    {
        // @ifdef DEBUG
        debug.ASSERT(this._eventsBound, 'unbindEvents called when events were not bound.');

        this._eventsBound = false;
        // @endif

        const dom = this.renderer.gl.canvas;

        if (window.PointerEvent)
        {
            dom.removeEventListener('pointerdown', this._boundHandleEvent);
            dom.removeEventListener('pointermove', this._boundHandleEvent);
            dom.removeEventListener('pointerout', this._boundHandleEvent);
            window.removeEventListener('pointerup', this._boundHandleEvent);
        }
        else
        {
            dom.removeEventListener('mousedown', this._boundHandleEvent);
            dom.removeEventListener('mousemove', this._boundHandleEvent);
            dom.removeEventListener('mouseout', this._boundHandleEvent);
            window.removeEventListener('mouseup', this._boundHandleEvent);

            dom.removeEventListener('touchstart', this._boundHandleEvent);
            dom.removeEventListener('touchmove', this._boundHandleEvent);
            dom.removeEventListener('touchcancel', this._boundHandleEvent);
            window.removeEventListener('touchend', this._boundHandleEvent);
        }

        dom.removeEventListener('wheel', this._boundHandleEvent);
    }
/**
     * Unbinds all the DOM events.
     *
     */
Unbinds all the DOM events.
Unbinds all the DOM events .
unbindEvents()
    {
        debug.ASSERT(this._eventsBound, 'unbindEvents called when events were not bound.');
        this._eventsBound = false;
        const dom = this.renderer.gl.canvas;
        if (window.PointerEvent)
        {
            dom.removeEventListener('pointerdown', this._boundHandleEvent);
            dom.removeEventListener('pointermove', this._boundHandleEvent);
            dom.removeEventListener('pointerout', this._boundHandleEvent);
            window.removeEventListener('pointerup', this._boundHandleEvent);
        }
        else
        {
            dom.removeEventListener('mousedown', this._boundHandleEvent);
            dom.removeEventListener('mousemove', this._boundHandleEvent);
            dom.removeEventListener('mouseout', this._boundHandleEvent);
            window.removeEventListener('mouseup', this._boundHandleEvent);
            dom.removeEventListener('touchstart', this._boundHandleEvent);
            dom.removeEventListener('touchmove', this._boundHandleEvent);
            dom.removeEventListener('touchcancel', this._boundHandleEvent);
            window.removeEventListener('touchend', this._boundHandleEvent);
        }
        dom.removeEventListener('wheel', this._boundHandleEvent);
    }
unbindEvents ( ) { debug . ASSERT ( this . _eventsBound , 'unbindEvents called when events were not bound.' ) ; this . _eventsBound = false ; const dom = this . renderer . gl . canvas ; if ( window . PointerEvent ) { dom . removeEventListener ( 'pointerdown' , this . _boundHandleEvent ) ; dom . removeEventListener ( 'pointermove' , this . _boundHandleEvent ) ; dom . removeEventListener ( 'pointerout' , this . _boundHandleEvent ) ; window . removeEventListener ( 'pointerup' , this . _boundHandleEvent ) ; } else { dom . removeEventListener ( 'mousedown' , this . _boundHandleEvent ) ; dom . removeEventListener ( 'mousemove' , this . _boundHandleEvent ) ; dom . removeEventListener ( 'mouseout' , this . _boundHandleEvent ) ; window . removeEventListener ( 'mouseup' , this . _boundHandleEvent ) ; dom . removeEventListener ( 'touchstart' , this . _boundHandleEvent ) ; dom . removeEventListener ( 'touchmove' , this . _boundHandleEvent ) ; dom . removeEventListener ( 'touchcancel' , this . _boundHandleEvent ) ; window . removeEventListener ( 'touchend' , this . _boundHandleEvent ) ; } dom . removeEventListener ( 'wheel' , this . _boundHandleEvent ) ; }
Unbinds all the DOM events.
Unbinds all the DOM events .
// @ifdef DEBUG // @endif