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

use mouseup rather than mousedown for list selection #18

Merged
merged 1 commit into from
Jul 31, 2017

Conversation

andrewharvey
Copy link
Collaborator

@andrewharvey andrewharvey commented Jul 7, 2017

This fixes mapbox/mapbox-gl-geocoder#68 with background in mapbox/mapbox-gl-geocoder#68 (comment).

One quirk I've noticed with this change is if you mousedown on a list item, then mouseup outside it correctly won't select it, but now the list stays open even when you interact with other elements of the page. I'm not sure the best fix for this but I don't think it's a big issue.

@andrewharvey andrewharvey merged commit 9337fc5 into tristen:gh-pages Jul 31, 2017
@andrewharvey andrewharvey deleted the select-on-mouseup branch July 31, 2017 12:02
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.

mouseup event from suggestions selection flows down to map event
2 participants