I use iScroll.js in my phonegap application. When I typing message in text area a text doesn’t scroll to the bottom automatically in webkit. When I disable -webkit-transform for scrolling div autoscroll works.
I tried to set -webkit-transform: none !important for text area, but it didn’t give any results.
Does anybody have any thoughts?
This is webkit bug. As a workaround you can turn off
-webkit-transformstyle from the child of iScroll element while textarea is in focus and immediately setscrollTopvalue to avoid jumping of scrolled content. And then return original styles on blur. Basic code to handle this will look like this:If you don’t like such JavaScript fix – consider using CSS3 property
webkit-overflow-scrolling: touchinstead of iScroll. It also has some pitfalls, but doesn’t have such problem with textarea.