gpt4 book ai didi

"-webkit-overflow-"滚动 :touch;"the scrolling just stops working sometimes… 的 iPad 网站

转载 作者:技术小花猫 更新时间:2023-10-29 11:24:47 26 4
gpt4 key购买 nike

这仅适用于 ipad 上的 Safari

我在一个内容溢出的 div 上有以下 css:

#some_div{ 
position: absolute; top:0px; left: 0px; right: 0px; bottom: 0px;
overflow-y:scroll;
overflow-x:scroll;
-webkit-overflow-scrolling: touch;
}

但是过了一会儿,或者有时当隐藏和 flex div 时,滚动就停止了。

有没有人以前遇到过这个问题或知道如何解决它?

干杯!

最佳答案

我能够通过阻止 body 标签上的默认行为来绕过这个“错误”

$('body').on('touchmove', function (e) {
e.preventDefault();
});

虽然我在 iframe 上遇到了问题

关于 "-webkit-overflow-"滚动 :touch;"the scrolling just stops working sometimes… 的 iPad 网站,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/19228008/

26 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com