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

try to fix the taquin #6

Merged
merged 3 commits into from
Oct 17, 2023
Merged

try to fix the taquin #6

merged 3 commits into from
Oct 17, 2023

Conversation

Its-Just-Nans
Copy link
Collaborator

No description provided.

const rect = can.getBoundingClientRect();
var x = e.clientX - rect.left < 0 ? 0 : e.clientX - rect.left;
var y = e.clientY - rect.top < 0 ? 0 : e.clientY - rect.top;
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Before the fix, x and y could be negative, wich lead to var i = -1 which is not correct

@StormCreeper StormCreeper merged commit 9473788 into main Oct 17, 2023
@Its-Just-Nans Its-Just-Nans deleted the taquin-fix branch October 17, 2023 20:25
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants