Skip to content

Commit

Permalink
fix(scroll): input text selecting w/ mouse events
Browse files Browse the repository at this point in the history
Do not preventDefault() within scrollView, mousedown when the target is
a text input. Closes #1475
  • Loading branch information
Adam Bradley committed Jun 11, 2014
1 parent e2ec0bf commit 86e1fe9
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion js/views/scrollView.js
Expand Up @@ -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;
};

Expand Down

0 comments on commit 86e1fe9

Please sign in to comment.