fix(textarea): Allow scroll in textarea when focused

Closes #1280
This commit is contained in:
Adam Bradley
2014-05-09 12:05:44 -05:00
parent b0cfe233a8
commit 5f2fdfdd07
5 changed files with 104 additions and 88 deletions

View File

@@ -161,7 +161,9 @@ function keyboardOnKeyDown(e) {
}
function keyboardPreventDefault(e) {
e.preventDefault();
if( e.target.tagName !== 'TEXTAREA' ) {
e.preventDefault();
}
}
function keyboardOrientationChange() {

View File

@@ -696,7 +696,8 @@ ionic.views.Scroll = ionic.views.View.inherit({
};
self.touchMove = function(e) {
if(e.defaultPrevented) {
if(e.defaultPrevented ||
(e.target.tagName === 'TEXTAREA' && e.target.parentElement.querySelector(':focus')) ) {
return;
}