As the title suggests, I need a workaround to prevent mobile safari from scrolling the document when a textarea is focused. The default behavior is to scroll the page so the textarea’s top is aligned with the top of the window. I just want my page to stay put. Is this possible?
As the title suggests, I need a workaround to prevent mobile safari from scrolling
Share
try with this
the event scroll only works when the element have a fixed height and the overflow property set to auto or scroll
check the example: http://jsfiddle.net/4YkNj/