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

Is it possible to expose an onMouseMove callback? #1125

Open
TrevorDecker opened this issue Jul 6, 2022 · 1 comment
Open

Is it possible to expose an onMouseMove callback? #1125

TrevorDecker opened this issue Jul 6, 2022 · 1 comment

Comments

@TrevorDecker
Copy link

For a tool I am working on it would be useful to have a callback that gives me the current mouse position in lat lng when the mouse is moved.

it appears that onMouseMove is an internal method but it is not possible to register a user callback on the event.
https://github.com/google-map-react/google-map-react/blob/master/src/google_map.js#L1158

If it is possible to have a user callback for mouse move please forgive me for not finding it and we can close this issue.

@TrevorDecker
Copy link
Author

I think that #1127 addresses this, let me know if you would rather it be implemented in a a different way

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