Open georg90 opened 8 years ago
Messing with the history / documentat location is not advisable in light of other JS libraries working with history. Nevertheless the CloseOnBack branch in https://github.com/hpcraink/swipebox/tree/CloseOnBack implements an option (false by default to mimick previous behaviour) to close the SwipeBox, but rewrite the window location to the previous location.
Probably I overlooked something. But it seems this isn't a feature, yet? It would be nice to have the possibility to close the swipebox on going back in history (back button on phone, go back in browser)
The same way http://photoswipe.com implemented it:
https://github.com/browserstate/history.js/