Safari in ios8 is scrolling screen when fixed elements get focus

前端 未结 12 1081
失恋的感觉
失恋的感觉 2020-12-12 11:24

In IOS8 Safari there is a new bug with position fixed.

If you focus a textarea that is in a fixed panel, safari will scroll you to the bottom of the page.

T

12条回答
  •  天涯浪人
    2020-12-12 12:00

    I had the issue, below lines of code resolved it for me -

    html{
    
     overflow: scroll; 
    -webkit-overflow-scrolling: touch;
    
    }
    

提交回复
热议问题