我知道Mobile Safari在“势头”(-webkit-overflow-scrolling:touch;)滚动时不会触发事件。但这不完全是一回事,因为Safari在内部处理(闪烁)插入的插入符号。Mobile Safari - 输入插入符号不会随溢出滚动一起滚动:touch
<div id="container">
<input type="text" />
<div class="filling"></div>
</div>
#container {
position: absolute;
top: 20px;
bottom: 20px;
width: 50%;
-webkit-overflow-scrolling: touch;
overflow-y: auto;
border: 1px solid black;
}
input {
margin-top: 60vh;
}
.filling {
height: 200vh;
}
试试这个拨弄你的设备上(集中输入,然后滚动):https://jsfiddle.net/gabrielmaldi/n5pgedzv
当你把你的手指按的问题也发生(在授课的时候它的动力和释放,即不仅):在脱字符未能滚动。
显然我不想关闭溢出滚动,如果没有办法修复脱字符,所以它会正确滚动,它可以隐藏它。
感谢
另见https://github.com/twbs/bootstrap/issues/14708 – cvrebert