Skip to content

fix(modal): sheet modal can be swiped down on content #29260

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

Merged
merged 1 commit into from
Apr 9, 2024
Merged

Conversation

liamdebeasi
Copy link
Contributor

@liamdebeasi liamdebeasi commented Apr 3, 2024

Issue number: Part of #24583


What is the current behavior?

When a sheet modal is fully opened swiping down on the IonContent when the content is scrolled to top does not move the sheet modal down. This does not align with the card modal where doing the same actions causes the card modal to move down.

What is the new behavior?

  • Swiping down on the content now moves the sheet modal down as long as the content is scrolled to the top.

Does this introduce a breaking change?

  • Yes
  • No

Other information

Dev build: 7.8.3-dev.11712114476.152fc43d

Reviewers:

Please test this on physical iOS and Android devices. Please check the following:

  1. When a modal is fully opened, ensure that users can still scroll down (i.e. swipe up on the content to scroll down).
  2. When a modal is fully opened, ensure that users can swipe down on the modal to dismiss when the content is scrolled to the top.
  3. Repeat step 2 but ensure that swiping down scrolls content to the top when content is NOT already scrolled to the top.

Card Behavior

Demo
card-content-scroll.mov

Sheet Behavior

main branch
sheet-content-scroll-bad.mov
sheet-content-scroll-good.mov

@github-actions github-actions bot added the package: core @ionic/core package label Apr 3, 2024
@liamdebeasi liamdebeasi marked this pull request as ready for review April 3, 2024 03:50
@liamdebeasi liamdebeasi requested a review from a team as a code owner April 3, 2024 03:50
@liamdebeasi liamdebeasi requested review from thetaPC and removed request for a team April 3, 2024 03:50
Copy link
Contributor

@sean-perkins sean-perkins left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Tested on a physical iPhone and an emulated Pixel 5 and the behavior matches the recordings. Changes look good 👍

@liamdebeasi liamdebeasi merged commit fbfd57a into FW-621 Apr 9, 2024
@liamdebeasi liamdebeasi deleted the 621-b branch April 9, 2024 20:37
github-merge-queue bot pushed a commit that referenced this pull request Apr 10, 2024
Issue number: resolves #24583

---------

<!-- Please do not submit updates to dependencies unless it fixes an
issue. -->

<!-- Please try to limit your pull request to one type (bugfix, feature,
etc). Submit multiple pull requests if needed. -->

## What is the current behavior?
<!-- Please describe the current behavior that you are modifying. -->

See
#24583 (comment)

## What is the new behavior?
<!-- Please describe the behavior or changes that are being added by
this PR. -->

- See #29260 and
#29259. This PR is a
combination of previously reviewed fixes.

## Does this introduce a breaking change?

- [ ] Yes
- [x] No

<!--
  If this introduces a breaking change:
1. Describe the impact and migration path for existing applications
below.
  2. Update the BREAKING.md file with the breaking change.
3. Add "BREAKING CHANGE: [...]" to the commit description when merging.
See
https://github.com/ionic-team/ionic-framework/blob/main/docs/CONTRIBUTING.md#footer
for more information.
-->


## Other information

<!-- Any other information that is important to this PR such as
screenshots of how the component looks before and after the change. -->


Dev build: `7.8.3-dev.11712695191.1d7ec370`
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
package: core @ionic/core package
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants