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

Mouse Drag incorrect Vector mouse position in Combat #6

Open
Snow0wl opened this issue Dec 7, 2023 · 0 comments
Open

Mouse Drag incorrect Vector mouse position in Combat #6

Snow0wl opened this issue Dec 7, 2023 · 0 comments
Labels
bug Something isn't working

Comments

@Snow0wl
Copy link
Collaborator

Snow0wl commented Dec 7, 2023

When testing the Combat classes mouse drag event listener, the values of the vectors stop getting recorded in the mouseTracePoints Array. When the mouse drag occurs fast in succession, sometimes the values of the mouses vector positioning are not added to the array, displaying an empty array size in the console upon the mouseUp event listener.

Steps to recreate:

  1. Visit MazeQuest through (AWS-hosted) link
  2. Log into MazeQuest account via Login tab / Sign in/up to your MazeQuest account via the Sign Up tab.
  3. Click on the Game Window tab.
  4. Inspect the page and open up the console display
  5. Click and drag mouse over the Combat section of the canvas, The Box above the word "Inventory"
  6. On mouse release the mouses trace path's length should appear in the console,
  7. If the click, drag, and release of the mouse is done again in quick succession, 0 is displayed as the array size
    Issue reported by Daniel Snow
@Snow0wl Snow0wl added the bug Something isn't working label Dec 7, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant