-
Notifications
You must be signed in to change notification settings - Fork 1.3k
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
Uncaught Error: Invalid pixel coordinate (react-map-gl@5.0.4) #846
Comments
This is an interesting bug... We do not remove event listeners upon unmount because we assume the element that they are attached to will be disposed. With your sandbox I can sometimes reproduce the issue, maybe React is doing something funky under the hood... |
fixed in 5.0.7 |
I can replicate this in 5.0.7 |
Currently using version 5.2.3, could reproduce the pixel error when dragging map with both right and left mouse button down. |
It seems that this issue is still present on 6.1.11. A few users are triggering this issue. Still investigating when this happens |
Please let me know if you fixed it |
@Morganballat I just got this issue because the div containing the map had 0 pixels height. |
Cause:
If you switch from a component rendering the map to another (click on the switch button in the link I provided), then right clicking on map causes an error, then subsequent mouse-move on the map cause the error too. If you do this mutliple times, multiple errors are triggered at the same time, as though the event handlers accumulate.
Result:
To reproduce:
https://codesandbox.io/s/wonderful-violet-vnt6y
I'm on Chrome 75.0.3770.100 64bits, OSX 10.14
And Firefox 68.0
The text was updated successfully, but these errors were encountered: