Mobile Safari - Input caret does not scroll along with overflow-scrolling: touch

后端 未结 10 2310
攒了一身酷
攒了一身酷 2020-12-25 15:24

I know that Mobile Safari won\'t fire events while in \"momentum\" (-webkit-overflow-scrolling: touch;) scrolling. But this is not entirely the same thing, because Safari ha

10条回答
  •  暗喜
    暗喜 (楼主)
    2020-12-25 15:55

    It's indeed a bug on newly released iOS 11.I resolved the issue on modal by changing the css:

    .modal {
      position:fixed;
      overflow-y: scroll;
      bottom: 0;
      left: 0;
      right: 0;
      top: 0;
      z-index: 99;
    }
    
    body {
      height: 100%;
      width:100%;
      overflow: hidden;
      position:fixed;
    }
    

提交回复
热议问题