fix(scroll): input text selecting w/ mouse events

Do not preventDefault() within scrollView, mousedown when the target is
a text input. Closes #1475
This commit is contained in:
Adam Bradley
2014-06-11 13:50:39 -05:00
parent e2ec0bfffe
commit 86e1fe9a54

View File

@@ -818,7 +818,9 @@ ionic.views.Scroll = ionic.views.View.inherit({
}
self.doTouchStart(getEventTouches(e), e.timeStamp);
e.preventDefault();
if( !ionic.tap.isTextInput(e.target) ) {
e.preventDefault();
}
mousedown = true;
};