Prevent iOS 11.3 overflow bouncing

I've been making use of the preventDefault technique on the touchmove event since now, when I noticed it doesn't seem to work anymore on iOS 11.3, for neither Safari, nor Chrome or Firefox:

document.ontouchmove = function(event){
    event.preventDefault();
} 

Has anything changed now in iOS? What's the way of preventing the bouncing at the top or end of the page?

Reproduction online

Reproduction online with jQuery

Video here:

在这里输入图像描述


It was caused by a bug of WebKit. Bug 182521

Try window.addEventListener("touchstart", preventBouncing, {passive: false} ); as a workaround.

链接地址: http://www.djcxy.com/p/41578.html

上一篇: 系统冻结,当父母和孩子连接

下一篇: 防止iOS 11.3溢出弹跳