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

Allow configuration of duration multiplier for flyTo #9301

Open
3 tasks done
TheNumenorean opened this issue Mar 23, 2024 · 0 comments
Open
3 tasks done

Allow configuration of duration multiplier for flyTo #9301

TheNumenorean opened this issue Mar 23, 2024 · 0 comments
Labels

Comments

@TheNumenorean
Copy link

Checklist

  • I've searched through the plugins to make sure this feature isn't already available, or think it shouldn't require a plugin.
  • I've searched through the current issues to make sure this feature hasn't been requested already.
  • I agree to follow the Code of Conduct that this project adheres to.

Motivation

I really like the flyTo animation, but it can be too slow (>8 seconds). It is configurable with duration, but that doesnt scale to the distance, so it can be too fast or too slow.

Suggested solution

Add a "durationMultiplier" option to PanOptions, which when present replaces the .8 here..
And/or add a "maxDuration" option to PanOptions which when present is used as an upper-bound on the number generated by the above linked line.

Alternatives considered

I could calculate the duration myself based on distance, but I would essentially have to duplicate the calculations the function is doing.

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

1 participant