From 86e1fe9a541da3bea2d4441177ebcbf17839f16b Mon Sep 17 00:00:00 2001 From: Adam Bradley Date: Wed, 11 Jun 2014 13:50:39 -0500 Subject: [PATCH] fix(scroll): input text selecting w/ mouse events Do not preventDefault() within scrollView, mousedown when the target is a text input. Closes #1475 --- js/views/scrollView.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/js/views/scrollView.js b/js/views/scrollView.js index 101ed15297..883f1c4232 100644 --- a/js/views/scrollView.js +++ b/js/views/scrollView.js @@ -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; };