removeEvents()
    {
        if (!this.interactionDOMElement)
        {
            return;
        }

        core.ticker.shared.remove(this.update, this);

        if (window.navigator.msPointerEnabled)
        {
            this.interactionDOMElement.style['-ms-content-zooming'] = '';
            this.interactionDOMElement.style['-ms-touch-action'] = '';
        }
        else if (this.supportsPointerEvents)
        {
            this.interactionDOMElement.style['touch-action'] = '';
        }

        if (this.supportsPointerEvents)
        {
            window.document.removeEventListener('pointermove', this.onPointerMove, true);
            this.interactionDOMElement.removeEventListener('pointerdown', this.onPointerDown, true);
            this.interactionDOMElement.removeEventListener('pointerleave', this.onPointerOut, true);
            this.interactionDOMElement.removeEventListener('pointerover', this.onPointerOver, true);
            window.removeEventListener('pointercancel', this.onPointerCancel, true);
            window.removeEventListener('pointerup', this.onPointerUp, true);
        }
        else
        {
            window.document.removeEventListener('mousemove', this.onPointerMove, true);
            this.interactionDOMElement.removeEventListener('mousedown', this.onPointerDown, true);
            this.interactionDOMElement.removeEventListener('mouseout', this.onPointerOut, true);
            this.interactionDOMElement.removeEventListener('mouseover', this.onPointerOver, true);
            window.removeEventListener('mouseup', this.onPointerUp, true);

            if (this.supportsTouchEvents)
            {
                this.interactionDOMElement.removeEventListener('touchstart', this.onPointerDown, true);
                this.interactionDOMElement.removeEventListener('touchcancel', this.onPointerCancel, true);
                this.interactionDOMElement.removeEventListener('touchend', this.onPointerUp, true);
                this.interactionDOMElement.removeEventListener('touchmove', this.onPointerMove, true);
            }
        }

        this.interactionDOMElement = null;

        this.eventsAdded = false;
    }
/**
     * Removes all the DOM events that were previously registered
     *
     * @private
     */
Removes all the DOM events that were previously registered
@private
Removes all the DOM events that were previously registered @private
removeEvents()
    {
        if (!this.interactionDOMElement)
        {
            return;
        }
        core.ticker.shared.remove(this.update, this);
        if (window.navigator.msPointerEnabled)
        {
            this.interactionDOMElement.style['-ms-content-zooming'] = '';
            this.interactionDOMElement.style['-ms-touch-action'] = '';
        }
        else if (this.supportsPointerEvents)
        {
            this.interactionDOMElement.style['touch-action'] = '';
        }
        if (this.supportsPointerEvents)
        {
            window.document.removeEventListener('pointermove', this.onPointerMove, true);
            this.interactionDOMElement.removeEventListener('pointerdown', this.onPointerDown, true);
            this.interactionDOMElement.removeEventListener('pointerleave', this.onPointerOut, true);
            this.interactionDOMElement.removeEventListener('pointerover', this.onPointerOver, true);
            window.removeEventListener('pointercancel', this.onPointerCancel, true);
            window.removeEventListener('pointerup', this.onPointerUp, true);
        }
        else
        {
            window.document.removeEventListener('mousemove', this.onPointerMove, true);
            this.interactionDOMElement.removeEventListener('mousedown', this.onPointerDown, true);
            this.interactionDOMElement.removeEventListener('mouseout', this.onPointerOut, true);
            this.interactionDOMElement.removeEventListener('mouseover', this.onPointerOver, true);
            window.removeEventListener('mouseup', this.onPointerUp, true);
            if (this.supportsTouchEvents)
            {
                this.interactionDOMElement.removeEventListener('touchstart', this.onPointerDown, true);
                this.interactionDOMElement.removeEventListener('touchcancel', this.onPointerCancel, true);
                this.interactionDOMElement.removeEventListener('touchend', this.onPointerUp, true);
                this.interactionDOMElement.removeEventListener('touchmove', this.onPointerMove, true);
            }
        }
        this.interactionDOMElement = null;
        this.eventsAdded = false;
    }
removeEvents ( ) { if ( ! this . interactionDOMElement ) { return ; } core . ticker . shared . remove ( this . update , this ) ; if ( window . navigator . msPointerEnabled ) { this . interactionDOMElement . style [ '-ms-content-zooming' ] = '' ; this . interactionDOMElement . style [ '-ms-touch-action' ] = '' ; } else if ( this . supportsPointerEvents ) { this . interactionDOMElement . style [ 'touch-action' ] = '' ; } if ( this . supportsPointerEvents ) { window . document . removeEventListener ( 'pointermove' , this . onPointerMove , true ) ; this . interactionDOMElement . removeEventListener ( 'pointerdown' , this . onPointerDown , true ) ; this . interactionDOMElement . removeEventListener ( 'pointerleave' , this . onPointerOut , true ) ; this . interactionDOMElement . removeEventListener ( 'pointerover' , this . onPointerOver , true ) ; window . removeEventListener ( 'pointercancel' , this . onPointerCancel , true ) ; window . removeEventListener ( 'pointerup' , this . onPointerUp , true ) ; } else { window . document . removeEventListener ( 'mousemove' , this . onPointerMove , true ) ; this . interactionDOMElement . removeEventListener ( 'mousedown' , this . onPointerDown , true ) ; this . interactionDOMElement . removeEventListener ( 'mouseout' , this . onPointerOut , true ) ; this . interactionDOMElement . removeEventListener ( 'mouseover' , this . onPointerOver , true ) ; window . removeEventListener ( 'mouseup' , this . onPointerUp , true ) ; if ( this . supportsTouchEvents ) { this . interactionDOMElement . removeEventListener ( 'touchstart' , this . onPointerDown , true ) ; this . interactionDOMElement . removeEventListener ( 'touchcancel' , this . onPointerCancel , true ) ; this . interactionDOMElement . removeEventListener ( 'touchend' , this . onPointerUp , true ) ; this . interactionDOMElement . removeEventListener ( 'touchmove' , this . onPointerMove , true ) ; } } this . interactionDOMElement = null ; this . eventsAdded = false ; }
Removes all the DOM events that were previously registered
 @private
Removes all the DOM events that were previously registered @private