Language-Mapping / language-map

Front-end codebase for Language Mapping web map
https://languagemap.nyc
MIT License
7 stars 4 forks source link

Anchors only work on second click in Info panel #223

Closed rperlin-ela closed 3 years ago

rperlin-ela commented 3 years ago

Not sure if this is related to #219 or something else, but for About and Help in the Info panel, which draw on Wordpress pages with anchor links, it seems to require two clicks to get to where the anchor is pointing. The first click briefly seems to go there before returning to the top of the page.

abettermap commented 3 years ago

@rperlin-ela i think i fixed this but the only quirk is if you start from an anchored "route", e.g. /Info/Help#local then it doesn't auto-scroll and also hides the title bar:

image

i believe this was the case w/the modals as well, so not going to fix in current scope. hopefully edge case anyway but just to mitigate, try not to link to any anchored routes like that from external sources (linking to unanchored things like /Info/Help is still fine though). not sure what "external sources" you'd have haha, but just an FYI.