Prevent scroll to top when using "-webkit-overflow-scrolling: touch" on iOS 10

254 views Asked by At

I am working on an iOS 10 app where there is a webkit page containing a vertical scrollable area with CSS rule -webkit-overflow-scrolling: touch.

If I scroll down the area and tap to the clock on the iPad status bar, the area is scrolled to the top.

How can I disable this "scroll to the top" behavior maintaining the smooth scrolling given by -webkit-overflow-scrolling: touch?

Both an Objective-C or JavaScript solution is accepted.

Thank you

0

There are 0 answers