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

Add onNativeClick callback #733

Merged
merged 1 commit into from
Feb 22, 2019
Merged

Add onNativeClick callback #733

merged 1 commit into from
Feb 22, 2019

Conversation

Pessimistress
Copy link
Collaborator

@Pessimistress Pessimistress commented Feb 20, 2019

For #569 (comment)

  • Fix regression where onClick is fired with delay even if doubleClickZoom is false
  • Add onNativeClick prop per discussion

react-map-click

if (this.props.captureDoubleClick) {
const {eventManager} = this._context;
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

This hack is no longer necessary with the new click handler in InteractiveMap

/* global setTimeout */
setTimeout(() => {
eventManager._toggleRecognizer('doubletap', true);
}, 0);
Copy link

@xintongxia xintongxia Feb 22, 2019

Choose a reason for hiding this comment

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

I am surprised that even with 0 timeout works before this change.

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.

2 participants