Skip to content
This repository was archived by the owner on Aug 8, 2023. It is now read-only.

Expose more gestures settings - #11407

Merged
LukasPaczos merged 7 commits into
release-bobafrom
11331-expose-gestures-api
Mar 7, 2018
Merged

LukasPaczos merged 7 commits into
release-bobafrom
11331-expose-gestures-api

Conversation

@LukasPaczos

Copy link
Copy Markdown
Contributor

Closes #11331.
This PR includes:

  • options for enabling/disabling gestures animations
  • a way of canceling velocity animations that are in progress
  • option to disable increase of rotate/scale threshold when the other is detected

The last one will enable users to set their own thresholds for in-progress gestures without it being overwritten by the default implementation.

I didn't see much use in exposing a builder for the gestures manager. Most of the interesting tricks are available through the library itself when the gesture is in progress rather than by setting an option. The best approach to take advantage of the library is using listeners for gesture state (ex. MapboxMap.OnMoveListener#onMoveBegin) and manipulating the manager that can be obtained via MapboxMap#getGesturesManager.

Most typical use-cases should be included in #11406

This PR also fixes issues with passing a custom AndroidGesturesManager, which should cover most of the advanced use-cases.

@LukasPaczos LukasPaczos added the Android Mapbox Maps SDK for Android label Mar 7, 2018
@LukasPaczos LukasPaczos added this to the android-v6.0.0 milestone Mar 7, 2018
@LukasPaczos
LukasPaczos requested a review from tobrun March 7, 2018 14:25

@tobrun tobrun left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🚀

@LukasPaczos
LukasPaczos merged commit 12664cd into release-boba Mar 7, 2018
@LukasPaczos
LukasPaczos deleted the 11331-expose-gestures-api branch March 7, 2018 14:56
@tobrun tobrun mentioned this pull request Mar 20, 2018
10 tasks done
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

Android Mapbox Maps SDK for Android

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants