Skip to content

Commit 86e1fe9

Browse files
author
Adam Bradley
committed
fix(scroll): input text selecting w/ mouse events
Do not preventDefault() within scrollView, mousedown when the target is a text input. Closes #1475
1 parent e2ec0bf commit 86e1fe9

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

Diff for: js/views/scrollView.js

+3-1
Original file line numberDiff line numberDiff line change
@@ -818,7 +818,9 @@ ionic.views.Scroll = ionic.views.View.inherit({
818818
}
819819
self.doTouchStart(getEventTouches(e), e.timeStamp);
820820

821-
e.preventDefault();
821+
if( !ionic.tap.isTextInput(e.target) ) {
822+
e.preventDefault();
823+
}
822824
mousedown = true;
823825
};
824826

0 commit comments

Comments
 (0)