]> git.ipfire.org Git - thirdparty/vuejs/router.git/commit
fix(history): fix pausing between back and forward
authorEduardo San Martin Morote <posva13@gmail.com>
Tue, 11 Jun 2019 10:41:40 +0000 (12:41 +0200)
committerEduardo San Martin Morote <posva13@gmail.com>
Tue, 11 Jun 2019 10:41:40 +0000 (12:41 +0200)
commitf10199a95da40e4ccbf729dfb5fcffcb01629305
tree74b7eae096cb130616fe0f3d85598290cfc09159
parent3612695d4dc31525e3e7825d1905524556429b03
fix(history): fix pausing between back and forward

I realized calling history.forward() on Safari didn't immediately called
the popstate listener, so simply setting a variable before and after
history.back() and history.forward() wasn't enough.
It still doesn't work consistently between all browsers. eg: on Safari
calling history.back() mulitple times in a row will trigger only one
popstate listener but on Firefox, it will trigger as many as necessary
src/errors.ts
src/history/html5.ts