Skip to content

Commit

Permalink
Controls: Add null as default parameter for domElement. (#1252)
Browse files Browse the repository at this point in the history
  • Loading branch information
Methuselah96 authored Sep 23, 2024
1 parent df9b6ef commit e993682
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion types/three/src/extras/Controls.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ declare abstract class Controls<TEventMap extends {}> extends EventDispatcher<TE
* @param object The object the controls should manage (usually the camera).
* @param domElement The HTML element used for event listeners. (optional)
*/
constructor(object: Camera, domElement: HTMLElement | null);
constructor(object: Camera, domElement?: HTMLElement | null);

/**
* Connects the controls to the DOM. This method has so called "side effects" since it adds the module's event
Expand Down

0 comments on commit e993682

Please sign in to comment.