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

[#72] Place callbacks in useCallbacks, add to useEffect dependencies to support disabling pan and zoom after initialization #73

Merged
merged 1 commit into from
Aug 12, 2023
Merged

[#72] Place callbacks in useCallbacks, add to useEffect dependencies to support disabling pan and zoom after initialization #73

merged 1 commit into from
Aug 12, 2023

Conversation

rbrownstein-bd
Copy link
Contributor

This is a fix for #72, wrapping callbacks in useCallback and providing the callbacks to the useEffect handler to ensure that changes in allowPan and allowZoom are applied after the component initializes

…cies to support disabling pan and zoom after initialization
@rbrownstein-bd
Copy link
Contributor Author

Quick update - we have tested this in our own application and it works as expected now.

@sylvaindubus
Copy link
Owner

Thanks for your contribution, I will take a look this weekend.

@sylvaindubus sylvaindubus self-requested a review August 12, 2023 12:38
@sylvaindubus sylvaindubus merged commit e8ec8a2 into sylvaindubus:master Aug 12, 2023
@sylvaindubus
Copy link
Owner

Looks good to me, I've just published it under version 3.3.5 😉

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