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

For #985: use round instead of floor for highestVisibleXIndex #1000

Closed
wants to merge 1 commit into from

Conversation

liuxuan30
Copy link
Member

@liuxuan30 liuxuan30 commented May 3, 2016

For #985:
I had regression on my side:

pt.x now is 25.0, if we print it, but in the memory, it looks like 24.999999993, so floor(pt.x) would be 24, while it should be 25.0?

So I checked #785, #794, I think they are ONLY related to lowestVisibleXIndex, because old code has "+1" appended. The latest code removed +1.
However, I think highestVisibleXIndex should stick to round as mentioned above.

@danielgindi did you meet any out of range issue because of using round? e.g. round(25.6) -> 26 while it should be 25.
This is kind of tricky, and we may want to review this carefully.

If you need a gitter chat, let me know

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.

1 participant