-
-
Notifications
You must be signed in to change notification settings - Fork 717
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
White flickering on resize in version 3.x.x #2971
Comments
This has changed recently to better support container resize and not just window resize. |
It does seem to behave a lot nicer if a debounce is used; I tried it with 50 milliseconds. Should it be configurable? We could change the trackResize option to take a boolean or a number, and default to 50 milliseconds if true or something like that. |
I'm not sure this should be configurable, but then hardcoded stuff tend to make their way to being configurable... IDK... |
I agree. I'll start with 25 or 50 in a PR, whatever seems like it works best, and we can go from there. |
maplibre-gl-js version:
3.3.0 and 3.2.0
browser:
Firefox & Chrome
Steps to Trigger Behavior
Expected Behavior
Does not flicker.
Especially because the behaviour in 2.4.0 on resize was better. Only the resized area was rerendered but not the complete map.
Actual Behavior
In Firefox is flickers very heavy on resize. In Chrome it gets completely white for a short time.
Thank you
The text was updated successfully, but these errors were encountered: