Swipe to go back override

Hi,

I’ve a page with a custom back button to show a confirmation box if this user is sure they want to go back cause they’ll lose data. However i can still swipe from left to right to go back and i can’t seem to capture this event nor can i disable it on this page alone.

I was wondering if anybody had any idea how to achieve this.

With best regards,
Robin Hinderiks