Halt/abort swipe to go back?

Hi, is there some way to cancel current swipe to go back transition?

I some times use event.preventDefault() on a statechange to stop going back a view, because a form has errors. Works fine with the back button, but if the user swipes to go back, it get stuck in the middle of the back transition.

Codepen demonstrating. Go to “contacts” then try to swipe back