mirror of
https://github.com/ionic-team/ionic-framework.git
synced 2026-03-13 10:22:08 +08:00
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:
@@ -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;
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user