Skip to content

Commit

Permalink
feature: Add stopListenToKeyEvents to OrbitControls (#376)
Browse files Browse the repository at this point in the history
  • Loading branch information
0b5vr authored Mar 20, 2023
1 parent dc73ae3 commit 3b73d22
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions types/three/examples/jsm/controls/OrbitControls.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -230,6 +230,11 @@ export class OrbitControls {
*/
listenToKeyEvents(domElement: HTMLElement | Window): void;

/**
* Removes the key event listener previously defined with {@link listenToKeyEvents}.
*/
stopListenToKeyEvents(): void;

/**
* Save the current state of the controls. This can later be
* recovered with .reset.
Expand Down

0 comments on commit 3b73d22

Please sign in to comment.