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

[Bug] Zooming is extremely slow on 5.3.21 #2103

Closed
NameFILIP opened this issue Jan 18, 2023 · 2 comments
Closed

[Bug] Zooming is extremely slow on 5.3.21 #2103

NameFILIP opened this issue Jan 18, 2023 · 2 comments
Labels

Comments

@NameFILIP
Copy link
Contributor

NameFILIP commented Jan 18, 2023

Description

Zooming in/out (using mouse wheel or trackpad) is extremely slow on 5.3.21.

Note: Adding transitionDuration={0} fixes the issue.

Expected Behavior

No response

Steps to Reproduce

  1. Open and zoom: https://codesandbox.io/s/billowing-shape-3ppjyl?file=/src/App.js
  2. Comment/Uncomment transitionDuration={0} and try zooming again.

Environment

  • Framework version: 5.3.21
  • Map library: ^1.0.0
  • Browser: Chrome 108.0.5359.124
  • OS: 13.1

Logs

No response

@NameFILIP NameFILIP added the bug label Jan 18, 2023
@Pessimistress
Copy link
Collaborator

v5 is no longer actively maintained. Performance issue is one of the reasons we moved to v7.

@NameFILIP
Copy link
Contributor Author

NameFILIP commented Jan 18, 2023

Looks like the issue is caused by adding transition properties to the _onWheel handler https://github.com/visgl/react-map-gl/blob/5.3-release/src/utils/map-controller.js#L402. Would it make sense to remove them to make this version at least useable?

@Pessimistress Pessimistress closed this as not planned Won't fix, can't repro, duplicate, stale Jun 26, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants