好的,所以我在滚动时遇到了ios这个问题,而且我现在已经尝试调试了几天,而且我仍然没有接近解决方案。
在iOS上首次加载页面时,预览/图像滚动条只是锁定(您无法滚动)。
它似乎非常有趣,因为有时候它不会工作,有时它会。
HTML:
<div class="scrolling-book-scrollable agitated-monkey" style="overflow: scroll;">
<!-- Width changes depending on the amount of images -->
<div class="scrolling-book" style="width: 10168px;">
<!-- A lot of divs with images inside that get added client side and changes if you change the options -->
</div>
</div>
CSS:
.scrolling-book-scrollable {
height: 100%;
overflow-x: scroll;
overflow-y: hidden;
-webkit-overflow-scrolling: touch;
-webkit-transform: translateZ(0px);
-webkit-transform: translate3d(0,0,0);
-webkit-perspective: 1000;
}
.scrolling-book-scrollable.agitated-monkey {
.scrolling-book {
animation: agitated 4s infinite $bezier-out forwards;
}
}
@keyframes agitated {
10% {
transform: translateX(-20px);
}
20% {
transform: none;
}
}