Re:Tetris as Font
by tobyhinloopen on Thursday June 20, 2024 @08:18AM
(#40737850)
Who would want to use the browser’s back button to undo a state change… I had to press back 20 times
[ Parent
| on HN ]
Re:Tetris as Font
by Wowfunhappy on Thursday June 20, 2024 @08:32AM
(#40737983)
I don't think it's on purpose, just a naïve consequence of using the URL for state.
Re:Tetris as Font
by moritzwarhier on Thursday June 20, 2024 @03:31PM
(#40742377)
Pretty common.
Should be replacing state in the history stack rather than pushing a new state.
Re:Tetris as Font
by corytheboyd on Thursday June 20, 2024 @10:51AM
(#40739395)
Agreed, was very annoying, please don’t misuse history like that :(
Right-click the back button?
Browsers only display the last 10 - 20 states, so if you've been clicking around it quickly fills up with just this page.
Re:Tetris as Font
by laszlokorte on Thursday June 20, 2024 @09:23AM
(#40738507)
Would be nice if browsers would group back button entries by:
1. same url except hash
2. same domain
3. rest
Re:Tetris as Font
by phist_mcgee on Thursday June 20, 2024 @07:29PM
(#40744628)
Safari does this
Re:Tetris as Font
by tobyhinloopen on Thursday June 20, 2024 @03:12PM
(#40742172)
Where’s the right click button on my phone
Long press
I find the back/forward buttons useful for undoing/redoing changes, so that I don't lose past cool designs / settings, though I can see it being a controversial approach.
That said, there were definitely way too much history generated when typing into a text field. I just implemented a planned compromise, where you only get a history event when changing a "committed" text field (meaning you previously defocused the field). Hopefully this is the best of both worlds!