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

[ios] Adapt GesturesManager/onMapTap and onMapLongPress #620

Merged
merged 1 commit into from
Jul 17, 2024

Conversation

maios
Copy link
Contributor

@maios maios commented Jul 16, 2024

What does this pull request do?

We should take advantage of existing gesture recognizers of MapView, namely onMapTap and onMapLongPress.

Remove extra tap and long press recognizer in GesturesController, replace them with onMapTap and onMapLongPress
This should fix #605 as onMapLongPress will emit events when the long press is recognized (after a minimum press duration), current approach with target/action will report event when the fingers are lifted off the screen.

Pull request checklist:

  • Add a changelog entry.
  • Write tests for all new functionality. If tests were not written, please explain why.
  • Add documentation comments for any added or updated public APIs.

- We should take advantage of existing gesture recognizers of MapView, namely onMapTap and onMapLongPress.
@maios maios requested a review from evil159 July 16, 2024 10:21
@maios maios requested review from a team as code owners July 16, 2024 10:21
Copy link
Contributor

@evil159 evil159 left a comment

Choose a reason for hiding this comment

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

Nice 👍

@maios maios merged commit 80d7b37 into main Jul 17, 2024
4 checks passed
@maios maios deleted the fix-ios-long-press branch July 17, 2024 11:03
@RAglx
Copy link

RAglx commented Aug 5, 2024

Great. Thank you. 👍

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

onLongTapListener on iOS not working as expected
3 participants