Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Nav swipe back should not vertically scroll the previous page #7444

Closed
martinjbaker opened this issue Jul 27, 2016 · 7 comments
Closed

Nav swipe back should not vertically scroll the previous page #7444

martinjbaker opened this issue Jul 27, 2016 · 7 comments
Assignees

Comments

@martinjbaker
Copy link

Short description of the problem:

When swiping back on iOS, if you move your finger vertically during the swipe then the incoming page is scrolling according to this movement. Looks very odd and isn't consistent with native UI.

What behavior are you expecting?

The vertical scroll position of the incoming page should be locked while the swipe is in progress.

Steps to reproduce:

  1. Run app on iOS device.
  2. Push a page onto the stack
  3. Swipe back from the left and move your finger vertically at the same time.

Which Ionic Version? 1.x or 2.x
2.0.0-beta.10

Cordova CLI: 5.4.1
Gulp version: CLI version 3.8.11
Gulp local: Local version 3.9.1
Ionic Framework Version: 2.0.0-beta.10
Ionic CLI Version: 2.0.0-beta.32
Ionic App Lib Version: 2.0.0-beta.18
ios-deploy version: 1.8.6
ios-sim version: 5.0.4
OS: Mac OS X El Capitan
Node Version: v5.11.1
Xcode version: Xcode 7.3.1 Build version 7D1014

@jgw96
Copy link
Contributor

jgw96 commented Jul 27, 2016

@martinjbaker Thanks for opening an issue with us! @manucorporat This sounds like something that could be solved by our new GestureController, what do you think?

@jgw96 jgw96 added the needs: reply the issue needs a response from the user label Jul 27, 2016
@popaprozac
Copy link

popaprozac commented Jul 27, 2016

@martinjbaker I resolved this issue with a work around. I use the ionViewDidLeave and ionViewDidEnter to control overflow of the page that sent you forward in the navigation stack (set it to overflow: hidden). If I understand your issue correctly, this is a known Webkit iOS bug with -webkit-overflow-scrolling: touch. The -webkit-overflow-scrolling: touch bug overrides the Ionic styles to attempt to prevent this. Passing overflow: hidden as an inline style through the workaround above properly stops inertia scrolling to the view behind. Hope this helps.

@biesbjerg
Copy link

Can you share your workaround?

@tmvnk
Copy link

tmvnk commented Aug 7, 2016

I also have this issue. Thought beta 11 with the new GestureController would solve this issue? Not very native indeed. Any tips for a workaround?

Should have the ability to disable scroll when swiping back? Like the Instagram App. I think this setting should be standard.

@martinjbaker
Copy link
Author

As one door closes... another opens.

beta 11 has fixed the scrolling on the incoming page but now the outgoing page is scrolling!

@Ionitron Ionitron removed the needs: reply the issue needs a response from the user label Aug 12, 2016
@tmvnk
Copy link

tmvnk commented Aug 17, 2016

Hi,

Any update or plan about this issue?

It gives the app a really unnative feeling.

Thnx!

@tmvnk
Copy link

tmvnk commented Aug 25, 2016

Do you need a screencast? I can simulate it in the Conference App.

manucorporat added a commit to manucorporat/ionic that referenced this issue Nov 15, 2016
manucorporat added a commit to manucorporat/ionic that referenced this issue Nov 15, 2016
manucorporat added a commit to manucorporat/ionic that referenced this issue Nov 15, 2016
@ionitron-bot ionitron-bot bot locked and limited conversation to collaborators Sep 9, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

7 participants