React-map-gl: Zooming is very slow after upgrade

Created on 1 Feb 2021  路  8Comments  路  Source: visgl/react-map-gl

After upgrade from 5.2.12 to 5.3.1, the zoom is very very slow.
Happens also on your examples site:
https://visgl.github.io/react-map-gl/examples/layers

Most helpful comment

Thanks maybe enabling smooth zoom was premature. I can revert the default back to what it was and make this an opt-in feature instead.

All 8 comments

What OS/browser are you using? Can you try scrollZoom={{smooth: false}}?

scrollZoom={{smooth: false}} fixes the problem for us.

We have seen the issue on:

  • macOS 11.1 / Firefox Developer Edition 86.0b4 (64-bit)
  • macOS 11.1 / Chrome 88.0.4324.96 (Official Build) (x86_64)

I am also seeing the same thing after upgrading.. unfortunately the typescript types don't allow the scroll zoom props so I can do a PR to allow that

also just a note on this the issue is much more pronounced using a trackpad vs a wheel, probably due to frequency the scroll events fire

Thanks maybe enabling smooth zoom was premature. I can revert the default back to what it was and make this an opt-in feature instead.

@Pessimistress
Similar to whats written above, im using:
macOs 10/ Chrome 88

Also, im using typescript and dont have this prop type, will wait for @kentongray PR.

Thanks!

Fixed in 5.3.3/6.1.3

@Pessimistress indeed all works well with 5.3.3
Thanks!

Was this page helpful?
0 / 5 - 0 ratings

Related issues

bogdancaspar picture bogdancaspar  路  3Comments

miccferr picture miccferr  路  4Comments

sicksid picture sicksid  路  3Comments

sudoStatus200 picture sudoStatus200  路  5Comments

joseomar10 picture joseomar10  路  5Comments