Even when overflow is set to hidden on the body, the PTR action still gets triggered when a pop-up or a modal is opened on Safari and the web view within the app.
So, how can we prevent PTR?
It's simple.
In my case, I was able to fix it by changing the overscroll-behavior style attribute for the body and html tags:
overscroll-behavior: none;
Browser compatibility:
Please note that this is supported from iOS 16 onwards.