usds / justice40-tool

A tool to identify disadvantaged communities due to environmental, socioeconomic and health burdens
https://screeningtool.geoplatform.gov/
Creative Commons Zero v1.0 Universal
133 stars 42 forks source link

Shortcuts broken after tract selection #1056

Closed switzersc-usds closed 2 years ago

switzersc-usds commented 2 years ago

Describe the bug When I zoom in anywhere and select a tract to view, and THEN click the "AS" shortcut, the map moves to the left slightly instead of taking me to American Samoa.

To Reproduce Steps to reproduce the behavior:

  1. Go to the Explore the Tool page.
  2. Zoom into any census tract NOT near American Samoa.
  3. Click the tract.
  4. Click the AS shortcut
  5. See that the map only moves slightly to the left.

Expected behavior I expected the map to immediately jump to and zoom in on American Samoa. If you click the AS shortcut multiple times, it finally will move you to American Samoa, but it should only need one click.

Screenshots If applicable, add screenshots to help explain your problem.

Desktop (please complete the following information):

Smartphone (please complete the following information):

Additional context Add any other context about the problem here.

switzersc-usds commented 2 years ago

Also identified by Jorge for the "48" shortcut.

vim-usds commented 2 years ago

Unable to reproduce on desktop.

Mobile experience seems to be registering the clicks on the shortcuts as taps on the map. Needs more investigation

vim-usds commented 2 years ago

Tasks