Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

lastWorldPos should update when camera moves under pointer #3078

Open
eonarheim opened this issue May 27, 2024 · 1 comment
Open

lastWorldPos should update when camera moves under pointer #3078

eonarheim opened this issue May 27, 2024 · 1 comment
Labels
bug This issue describes undesirable, incorrect, or unexpected behavior stale This issue or PR has not had any activity recently

Comments

@eonarheim
Copy link
Member

Steps to Reproduce

Move camera underneath a non-moving pointer, check the lastWorldPos is not updated.

Expected Result

lastWorldPos should match the reality of the current pointer, camera and game world.

Actual Result

lastWorldPos is only updated on pointer move

Environment

  • browsers and versions:
  • operating system:
  • Excalibur versions:
  • (anything else that may be relevant)

Current Workaround

Use pointer.lastScreenPos with screen.screenToWorldCoordinates.
https://excaliburjs.com/api/class/Screen/#screenToWorldCoordinates

@eonarheim eonarheim added the bug This issue describes undesirable, incorrect, or unexpected behavior label May 27, 2024
Copy link

This issue hasn't had any recent activity lately and is being marked as stale automatically.

@github-actions github-actions bot added the stale This issue or PR has not had any activity recently label Jul 27, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug This issue describes undesirable, incorrect, or unexpected behavior stale This issue or PR has not had any activity recently
Projects
None yet
Development

No branches or pull requests

1 participant