News for hackers. Stuff that matters.
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
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.
Re:Tetris as Font by mvf4z7 on Thursday June 20, 2024 @08:59AM (#40738255)
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 :(
Re:Tetris as Font by xd1936 on Thursday June 20, 2024 @08:29AM (#40737953)
Right-click the back button?
Re:Tetris as Font by TehCorwiz on Thursday June 20, 2024 @08:49AM (#40738156)
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
Re:Tetris as Font by wayvey on Saturday June 22, 2024 @07:49AM (#40758337)
Long press
Re:Tetris as Font by edemaine on Thursday June 20, 2024 @03:39PM (#40742464)
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!