Skip to content

Fixed issue with undefined initial zoom #790

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

Closed
wants to merge 1 commit into from

Conversation

More4ever
Copy link

Resolved Issue:
mount zoom value is not set, in process of work we set zoom to any value (eg. 12).

Math.abs(nextProps.zoom - this.props.zoom) > 0 condition is always false

Math.abs(12 - undefined) = NaN

Issue: mount zoom value is not set, in process of work we set zoom to any value (eg. 12). condition always `false`
`Math.abs(12 - undefined)` = `NaN`
@itsmichaeldiego
Copy link
Member

@More4ever Is this from an open issue?

@More4ever
Copy link
Author

Not sure it was too many days ago

Probably it exists only as PR. I can create issue with same description and source code links if it is required

@itsmichaeldiego
Copy link
Member

@More4ever The problem is that I don't see the issue happening, so I don't know what you are fixing. Therefore yes, please!

@itsmichaeldiego
Copy link
Member

@More4ever I think this is a duplicate of #864, and I think #864 fixes the problem way better, what do you think?

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.

3 participants