Skip to content

Fix orientation cube raycasting for high DPI displays#586

Merged
tentone merged 1 commit intomasterfrom
codex/fix-devicepixelratio-in-rotation-cube-raycasting
Sep 22, 2025
Merged

Fix orientation cube raycasting for high DPI displays#586
tentone merged 1 commit intomasterfrom
codex/fix-devicepixelratio-in-rotation-cube-raycasting

Conversation

@tentone
Copy link
Copy Markdown
Owner

@tentone tentone commented Sep 22, 2025

Summary

  • update the orientation cube to scale mouse coordinates by the canvas device pixel ratio before raycasting
  • store a reusable pointer vector for the cube to avoid per-frame allocations

Testing

  • npx eslint source/editor/gui/tab/scene-editor/utils/OrientationCube.js

https://chatgpt.com/codex/tasks/task_e_68d05074bdcc833297cffaf78f87eee9

@tentone tentone merged commit 90d2676 into master Sep 22, 2025
1 of 2 checks passed
@tentone tentone deleted the codex/fix-devicepixelratio-in-rotation-cube-raycasting branch September 22, 2025 09:12
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant