You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
fix(modal): sheet modal can be swiped down on content (#29260)
Issue number: Part of
#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. -->
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?
<!-- Please describe the behavior or changes that are being added by
this PR. -->
- 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
- [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/.github/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.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 |
| - |
| <video
src="https://github.com/ionic-team/ionic-framework/assets/2721089/910755c8-808e-4e0b-85d2-9a56a3b127c4"></video>
|
**Sheet Behavior**
| `main` | branch |
| - | - |
| <video
src="https://github.com/ionic-team/ionic-framework/assets/2721089/eb0b740f-b644-4602-93f9-8c634458239b"></video>
| <video
src="https://github.com/ionic-team/ionic-framework/assets/2721089/3844983e-ebbc-43f3-b5c2-20aad738b201"></video>
|
0 commit comments