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

Marking event handler passive #4277

Closed
martinrisseeuw opened this issue Feb 15, 2017 · 1 comment
Closed

Marking event handler passive #4277

martinrisseeuw opened this issue Feb 15, 2017 · 1 comment

Comments

@martinrisseeuw
Copy link

mapbox-gl-js version:

Steps to Trigger Behavior

  1. Get a android device or simulator
  2. Browse to http://secrid.martinr.nl/stores/
  3. Type a location to flyTo in the geocoder field
  4. Select the location by clicking (touching it)
  5. Map starts to fly but stops before reaching the location

Expected Behavior

FlyTo the select location without stopping before

Actual Behavior

When you select a location through the geocoder the map stops when you press one of the items in the list. My simulator returns this warning:
Handling of 'touchmove' input event was delayed for 164 ms due to main thread being busy. Consider marking event handler as 'passive' to make the page more responsive.

When you use enter instead of pressing the selection the behaviour works as expected.

@lucaswoj
Copy link
Contributor

Duplicate of #3720

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

No branches or pull requests

2 participants