如下,当偏移量达到50%时,就翻页

page = floor((scrollView0.contentOffset.x - pageWidth / 2) / pageWidth) + 1;

 

相关文章:

  • 2021-12-03
  • 2021-09-10
  • 2021-11-26
  • 2021-12-09
  • 2021-09-29
  • 2022-12-23
  • 2022-12-23
猜你喜欢
  • 2022-12-23
  • 2022-12-23
  • 2021-12-23
  • 2022-12-23
  • 2021-07-24
  • 2022-12-23
相关资源
相似解决方案