school-finder icon indicating copy to clipboard operation
school-finder copied to clipboard

Fix back button behavior

Open techieshark opened this issue 10 years ago • 6 comments

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 avatar May 22 '15 03:05 techieshark

@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 ?

Lilith-Palmer avatar Aug 31 '15 02:08 Lilith-Palmer

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 avatar Sep 01 '15 02:09 techieshark

@techieshark surely you see the benefit of a restart button?

Lilith-Palmer avatar Sep 03 '15 00:09 Lilith-Palmer

Moving restart button discussion to #147 and renaming this back to address the back button.

techieshark avatar Sep 08 '15 02:09 techieshark

@Lilith-Palmer will review with @reekypete. Think "Google Maps".

techieshark avatar Oct 14 '15 06:10 techieshark

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.

techieshark avatar Sep 14 '16 23:09 techieshark