Skip to content
This repository has been archived by the owner on Apr 2, 2018. It is now read-only.

disableScroll doesn't work on latest iOS on iPhone 6 #90

Open
batuhan opened this issue May 9, 2015 · 20 comments
Open

disableScroll doesn't work on latest iOS on iPhone 6 #90

batuhan opened this issue May 9, 2015 · 20 comments

Comments

@batuhan
Copy link

batuhan commented May 9, 2015

Hi,

I've tried this plugin a while ago and it was working perfectly, I tried it today and somehow the screen bounces when the keyboard is active.

Code I'm using to activate the feature (this runs inside $ionicPlatform.ready()):
cordova.plugins.Keyboard.disableScroll(true);

This is what happens when an input is focused: http://vitrin.io/static/ionic-keyboard-bug-demo.html

Am I doing something wrong?

Thanks.

@batuhan
Copy link
Author

batuhan commented May 10, 2015

It's working correctly now. Wonder what was the issue.

@batuhan batuhan closed this as completed May 10, 2015
@batuhan
Copy link
Author

batuhan commented May 26, 2015

Started experiencing the same issue. Is this related to the plugin or something else?

@batuhan batuhan reopened this May 26, 2015
@Grigorius
Copy link

Are you using WKWebView ?

@batuhan
Copy link
Author

batuhan commented May 29, 2015

This issue appeared before that too but yes. That could be the reason why it returned. 

On Fri, May 29, 2015 at 3:50 PM, Grigorius [email protected]
wrote:

Are you using wkwebview ?

Reply to this email directly or view it on GitHub:
#90 (comment)

@bFlood
Copy link

bFlood commented May 29, 2015

I see the same thing. Using AppGyver but I don't think it uses WKWebView

@batuhan
Copy link
Author

batuhan commented Jun 18, 2015

We don't use WKWebView anymore and still have this issue.

@eroh92
Copy link

eroh92 commented Aug 11, 2015

I am having the same issue in the iPhone 6 simulator, iOS 8.4. No matter how many times I call disable scroll, it bounces. Randomly, it will work.

@eroh92
Copy link

eroh92 commented Aug 11, 2015

Adding this seems to resolve it:

  $scope.$on('$cordovaKeyboard:show', function(){
    $cordovaKeyboard.disableScroll(true);
  });

Note: I'm using $cordovaKeyboard from ng-cordova.

@eroh92
Copy link

eroh92 commented Aug 13, 2015

Unfortunately, the issue has returned and I am not using WKWebView. I have disableScroll all over the codebase and nothing seems to be helping? @batuhan @bFlood were you able to get to the bottom of this?

@bFlood
Copy link

bFlood commented Aug 13, 2015

no, not at all. and the keyboard randomly crashes the app as well. I wish appgyver would spend some time on something as important as the keyboard

@jason-engage
Copy link

@tlancina Tim, if I send you an invite to a private bitbucket repo, can you build it and verify the form bug on IOS? If so, plz send me an email address that I can send you the info and I trust ya'll will keep my code private. Cheers

@tlancina
Copy link
Contributor

@jason-engage that should work fine, bitbucket is free to sign up right? Email is tim at ionic.io, thanks!

@jason-engage
Copy link

Yeah its free. You'll have the invite to join my repo by tomorrow morning.

@gregavola
Copy link

Has anyone fixed this issue yet?

@eroh92
Copy link

eroh92 commented Oct 13, 2015

@tlancina @jason-engage, have you gotten to the bottom of this? Happy to help reproduce if not.

@jason-engage
Copy link

Nope, I haven't solved it yet.

On Tue, Oct 13, 2015 at 12:55 AM, Rob Eroh [email protected] wrote:

@tlancina https://github.com/tlancina @jason-engage
https://github.com/jason-engage, have you gotten to the bottom of this?
Happy to help reproduce if not.


Reply to this email directly or view it on GitHub
#90 (comment)
.

[image: ENGAGE] http://www.engageify.com/

@niyando
Copy link

niyando commented Feb 9, 2016

I can confirm this. disableScroll isn't working on iphone 6. It does work for older versions (5, 5s)

@patrickhofer
Copy link

patrickhofer commented Aug 22, 2016

Yes, for me as well, any update on this? @tlancina

@patrickhofer
Copy link

patrickhofer commented Aug 25, 2016

I solved this issue by adding <script>window.cordova = {};</script> before every script in index.html. Seems like window.cordova isn't defined... It's a hack, but it works 😄

@jetma
Copy link

jetma commented Sep 12, 2017

window.addEventListener('native.keyboardshow', function(event) {
	// IMPORTANT!! 
	$timeout(function() {
		$cordovaKeyboard.disableScroll(true);

		// find your own elements and set height to 100%
		var el = angular.element('.modal-backdrop.active ion-content');
		if (el) {
			el.css('height', '100%');
		}
	}, 100);
});

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

10 participants