-
Notifications
You must be signed in to change notification settings - Fork 13.5k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(scroll): keyboard support for native scroll views
- Loading branch information
1 parent
d3c3e8c
commit a293a23
Showing
3 changed files
with
150 additions
and
35 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
a293a23
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Has any of this been tested on the WKWebView? I get some funny behaviour which can be avoided by checking for the WKWebView in keyboardFocusIn and returning false if it's found.
If there's no testing done on WKWebView I'll raise a PR
a293a23
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
With WKWebView still being very unstable, we haven't been testing on it. Feel free to put together a PR for it though.
a293a23
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Cool. Yea it's pretty wild with inputs. I've found that having ionic just let it do it's thing is better than the jumping about that currently happens. Will put it in now
a293a23
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
native scroll for android does not work after upgraded to 1.0.1, the webview does not respond touch scroll event.
I enabled native scroll instead of Ionic js scrolling to improve scroll performance , it works well with last version,
.config(function($ionicConfigProvider) {
if (!ionic.Platform.isIOS()) {
$ionicConfigProvider.scrolling.jsScrolling(false);
}
})
not sure It's an issue , anyone met the issue ?
a293a23
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@yiqinglan do you have an example for this? Scrolling works for me in 1.0.1. Please open an issue and provide a codepen example