[英]Iscroll for bootstrap modal works just after a windows resize
since overflow: auto and overflow: scroll don't work for android 4 and older versions I tried to use Iscroll.js. 由于溢出:自动和溢出:滚动不适用于android 4和更旧的版本,我试图使用Iscroll.js。 I use it for 2 normal div and it works fine.
我将其用于2个普通div,它工作正常。 but bootstrap modal has a problem with it.
但是引导模态有一个问题。 it only gets scrolled after a window resize.
仅在调整窗口大小后才滚动。
I tried many things to solve it: 我尝试了很多方法来解决它:
none of the them solve this problem. 他们都没有解决这个问题。 so please help.
所以请帮忙
I solved it. 我解决了 the code can explain the problem.
该代码可以解释问题。
' $(".product-it").click(function(){ $(this).delay(500).queue(function() { '$(“。product-it”)。click(function(){$(this).delay(500).queue(function(){
myScroll.refresh();
$(this).dequeue();
}); });
});
' “
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.