Disable two finger swipe on safari when there is a horizontal scroll bar available

Hi i have two finger swipe mapped to “Show Previous Page” in Safari.
But I also use the two fingers to perform the horizontal scroll action in wider webpages.
Is there a way to auto-detect the presence of horizontal scroll and disable the BTT configuration of two-finger swipe?

On my end I've tested with a specific site, and Back/Show previous page function is not executed until the scroll bar hit the far left. Does Safari behaves differently on the websites you use? Or you would like to avoid this exact behavior (disable "Show previous page") even when the horizontal scroll bar reaches the far left?

If you know the pages/URLs where you would like to disable this, there's variable active_website_url which you can use as a condition to disable the "Show previous page".

As @xidiot mentioned the system standard behavior should already achieve what you want, there is no need to set up this gesture in BTT, just make sure your System Settings are configured like this:

Yeah I’ve been using the active website url to disable the gesture on specific websites in the advanced settings config. But the list of websites are increasing exponentially haha.

Thanks for the advice

Thankyou Andreas. I’ll give this a shot