school-finder
school-finder copied to clipboard
Fix back button behavior
I've noticed people click the back button instead of scrolling up. That's perhaps understandable since they're clicking a button instead of scrolling down.
We could use the History API to keep track of their history inside the page and make it so when they click the back button it scrolls up (or whatever is appropriate in that case).
Needs testing / research to figure out how necessary this is and flesh out how the interaction should work.
@techieshark what about a reset button at the bottom of the results- something like 'perform a new search', so users don't need to scroll and won't just hit the back button.Possibly a project for @reekypete ?
I am guessing people will hit the back button anyway. Since that UI is built into the browser, I'd suggest sticking with that.
@techieshark surely you see the benefit of a restart button?
Moving restart button discussion to #147 and renaming this back to address the back button.
@Lilith-Palmer will review with @reekypete. Think "Google Maps".
Good idea from @reekypete: use history API in such a way that when you start interacting with app you push a new URL on the stack, and regardless of what "step" you are on, when you click back it just puts you at the beginning.