dispose method

dynamic dispose()

Implementation

dispose() {
  scope.domElement.removeEventListener('contextmenu', onContextMenu);

  scope.domElement.removeEventListener('pointerdown', onPointerDown);
  scope.domElement.removeEventListener('pointercancel', onPointerCancel);
  scope.domElement.removeEventListener('wheel', onMouseWheel);

  scope.domElement.removeEventListener('pointermove', onPointerMove);
  scope.domElement.removeEventListener('pointerup', onPointerUp);

  // if ( scope._domElementKeyEvents != null ) {

  //   scope._domElementKeyEvents.removeEventListener( 'keydown', onKeyDown );

  // }

  //scope.dispatchEvent( { type: 'dispose' } ); // should this be added here?
}