[Feature request] Add scroll deceleration factor
Nobody has claimed this yet.
Assessment
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Newbie friendliness
- 55/100
- Issue type
- Feature
- Clarity
- Mostly clear
- Activity status
- Quiet
- Domain
- mobile-dev
Research direction
Start with the Flutter plugin's GestureSettings API and trace how scrollDecelerationEnabled is passed to the iOS implementation. Check whether the native Mapbox iOS SDK's panDecelerationFactor is the relevant entry point, then define the Flutter-facing control and verify that it changes iOS map coasting behavior without regressing Android.
Written by the indexing model from the issue text.
Description
Hi there! Currently, GestureSettings exposes scrollDecelerationEnabled to control whether a deceleration animation occurs after a user finishes a scroll/pan gesture. While this flag works as expected on Android to toggle the fling/inertia effect, it has no effect on iOS.
When a user scrolls the map on iOS, the map continues coasting for a significant amount of time before coming to a complete stop. This takes longer than expected compared to native iOS scrolling behaviors, and there is currently no way to disable or fine-tune this deceleration via the Flutter plugin.
It looks like in the native Mapbox iOS SDK, this behavior is managed via GestureOptions.panDecelerationFactor (I could be wrong). It would be a great to have native deceleration tuning in Flutter.
Thank you in advance
https://github.com/user-attachments/assets/cc0fbf68-6612-460a-b361-39f62309bd3b
- Dominant language
- Dart
- Stars
- 379
- Forks
- 204
- PR merge metrics
- No merged PRs in 30d
Getting set up
- No Dockerfile or Docker Compose file
- Has a pull request template
- Read the contributing guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from mapbox/mapbox-maps-flutter
-
Difficulty 4/5 3-5 days Newbie friendliness 45/100
mapbox/mapbox-maps-flutter#1144 ·
-
iOS: the map cannot be captured or read by flutter, because it is a platform viewPossibly taken @Nixxx19 claimed this 39 days ago. Open
Difficulty 5/5 Over a week Newbie friendliness 25/100
mapbox/mapbox-maps-flutter#1142 ·
-
Difficulty 3/5 1-2 days Newbie friendliness 58/100
mapbox/mapbox-maps-flutter#1140 ·
-
Normalize ornament positioning relative to safe areas on iOS and AndroidMay be free again @maios claimed this 83 days ago, and no pull request is open. Open
mapbox/mapbox-maps-flutter#1137 · 1 comment · 1 reaction · 1 assignee ·
-
Difficulty 3/5 1-2 days Newbie friendliness 48/100
mapbox/mapbox-maps-flutter#1136 · 1 comment ·
All issues in mapbox/mapbox-maps-flutter
Similar issues
-
Difficulty 2/5 1-3 hours Newbie friendliness 67/100
DarkFlippers/qUnleashed#240 ·
Maintainers usually reply within 1 day
-
Difficulty 2/5 1-3 hours Newbie friendliness 68/100
quickemu-project/quickgui#328 ·
-
enhancement
Difficulty 2/5 1-3 hours Newbie friendliness 62/100
ApplETS/Notre-Dame#1393 ·
-
(fix) Wrong dateOpen
Difficulty 2/5 1-3 hours Newbie friendliness 72/100
Solvro/mobile-topwr#1239 ·
-
Handle `kbd`Open
Difficulty 2/5 1-3 hours Newbie friendliness 67/100
freeCodeCamp/mobile#1845 ·