Skip to content

Commit

Permalink
feat: update code
Browse files Browse the repository at this point in the history
  • Loading branch information
cptbtptpbcptdtptp committed Jan 14, 2025
1 parent 066cec2 commit 429ebe5
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions packages/ui/src/input/UIPointerEventEmitter.ts
Original file line number Diff line number Diff line change
Expand Up @@ -66,10 +66,8 @@ export class UIPointerEventEmitter extends PointerEventEmitter {
camera.screenPointToRay(pointer.position, ray);

/** Other canvases */
const cameraTransform = camera.entity.transform;
const isOrthographic = camera.isOrthographic;
const cameraPosition = cameraTransform.worldPosition;
const cameraForward = cameraTransform.worldForward;
const { worldPosition: cameraPosition, worldForward: cameraForward } = camera.entity.transform;

Check warning on line 70 in packages/ui/src/input/UIPointerEventEmitter.ts

View check run for this annotation

Codecov / codecov/patch

packages/ui/src/input/UIPointerEventEmitter.ts#L69-L70

Added lines #L69 - L70 were not covered by tests
/** Sort by rendering order */
canvasElements = componentsManager._canvases;
for (let k = 0, n = canvasElements.length; k < n; k++) {
Expand Down

0 comments on commit 429ebe5

Please sign in to comment.