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

pixelsToPositionY returns y bigger than maxRows #758

Open
ozdavid opened this issue Jul 27, 2021 · 0 comments
Open

pixelsToPositionY returns y bigger than maxRows #758

ozdavid opened this issue Jul 27, 2021 · 0 comments

Comments

@ozdavid
Copy link

ozdavid commented Jul 27, 2021

When getting into pixelsToPositionY from calculateItemPosition it sends round method: Math.round(). Therefore pixelsToPositionY returns 2 even though my maxRows is 2 which causes problems with grid colliison. This could have been solved if the round method in pixelsToPositionY would have been Math.floor().
Is there any way to do this?

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

No branches or pull requests

1 participant