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

flyTo padding not applied with prefers-reduced-motion since v3.4.0 #13189

Open
StuDownie opened this issue May 29, 2024 · 0 comments
Open

flyTo padding not applied with prefers-reduced-motion since v3.4.0 #13189

StuDownie opened this issue May 29, 2024 · 0 comments
Labels

Comments

@StuDownie
Copy link

After #13186 padding options are not applied to flyTo or fitBounds if the user has also set prefers-reduced-motion to reduce

Mapbox v3.4.0

Steps to Trigger Behavior

  1. add a flyTo with padding options
map.flyTo({
   center: coordinates,
   padding: {
     top: 100,
     bottom: 0,
     left: 0,
     right: 0,
   },
});
  1. Set your device to reduce motion (Mac: Settings > Accessibility > Display > Reduce Motion)

Expected Behavior

Padding applied

Actual Behavior

Padding not applied

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