Skip to content

Commit

Permalink
Flycamera element fix (BabylonJS#15240)
Browse files Browse the repository at this point in the history
* Added GetPointsCount

* Removed unused _element
  • Loading branch information
RolandCsibrei authored Jul 1, 2024
1 parent 338d5ec commit 6a757c5
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions packages/dev/core/src/Cameras/Inputs/flyCameraMouseInput.ts
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,6 @@ export class FlyCameraMouseInput implements ICameraInput<FlyCamera> {
private _rollObserver: Nullable<Observer<Scene>>;
private _previousPosition: Nullable<{ x: number; y: number }> = null;
private _noPreventDefault: boolean | undefined;
private _element: HTMLElement;

/**
* Listen to mouse events to control the camera.
Expand Down Expand Up @@ -166,7 +165,6 @@ export class FlyCameraMouseInput implements ICameraInput<FlyCamera> {

if (!this._noPreventDefault) {
e.preventDefault();
this._element.focus();
}

// This is required to move while pointer button is down
Expand Down

0 comments on commit 6a757c5

Please sign in to comment.