dispose method

dynamic dispose()

Implementation

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

  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);

  // TODO
  // window.removeEventListener( 'keydown', keydown );
  // window.removeEventListener( 'keyup', keyup );
}