-
Notifications
You must be signed in to change notification settings - Fork 13.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
bug: Erratic content scroll when textarea has focus #2901
Comments
I am seeing the same issue with both textarea and input[type="text"] |
+1 We are also seeing this for both text areas and input[type="text"] elements on IOS 8. It also happens when the user puts focus on an input and the screen shifts automatically by programmatically scrolling the page. |
Christopher http://lilwall.ca/robot_strategii 24.03.2015, 16:28, "Christopher G Johnson" notifications@github.com:+1 We are also seeing this for both text areas and input[type="text"] elements on IOS 8. —Reply to this email directly or . |
I too am seeing this issue. If there are two textareas on the screen the app scrolls to the second one. |
Hey I'm unable to reproduce using the provided codepen, can anyone test out the latest nightly and tell me if this is still happening? |
@tlancina Sorry for the delayed response... updating to the nightly in code pen and will see if it is reproducible, if not will close straight away. |
@tlancina I am able to reproduce the bug. I have uploaded a screencast reproducing the issue to youtube. I wish I could show where my finger was on the screen in this screencast. It happens when the |
There is obviously a lot going on with the scroll view with things like: self.touchMove = function(e) {
if (self.options.freeze || !self.__isDown ||
(!self.__isDown && e.defaultPrevented) ||
(e.target.tagName === 'TEXTAREA' && e.target.parentElement.querySelector(':focus')) ) {
return;
}
if ( !self.__hasStarted && ( ionic.tap.containsOrIsTextInput(e.target) || e.target.tagName === 'SELECT' ) ) {
// the target is a text input and scroll has started
// since the text input doesn't start on touchStart, do it here
self.__hasStarted = true;
self.doTouchStart(getEventTouches(e), e.timeStamp);
e.preventDefault();
return;
}
....
} I would like to try to help create a test for this issue, but not sure where the best place would be. Looking at the |
@bassettsj did you find a solution? I have the same problem with textarea on ionic v1.0.0. When a textarea has focus on touch move (only on the textarea) the whole webview scrolls (tested on iPhone5 iOS 8.3). |
Within our applicantion we have a workaround, but not really a great one. It would be best to look into the source scrollview code... |
Hello all! Is this still an issue with the latest version of ionic: 1.3.0 ? |
Hello all! As it seems it has been a while since there was any activity on this issue i will be closing it for now. Feel free to comment if you are still running into this issue. Thanks for using Ionic! |
Type: bug
Platform: ios 8 browser
### Steps to reproduce: - focus on textarea element - while focused touch and drag outside of the element and watch the weird scrollingExample codepen sandbox
Screencast of the behaviour
The text was updated successfully, but these errors were encountered: