ionic-framework
ionic-framework copied to clipboard
fix(modalSheet): change gesture to allow draging when content scrolle…
Change gesture to allow draging when user overscroll
Issue number: #24583
What is the current behavior?
As mentionned in this comment on the issue #24583. Once you can scroll, dragging down on anywhere but the handle when the content is scrolled to the top doesn't do anything, when it should move the modal.
What is the new behavior?
- When their is a ion-content tag inside a modal and the modal is fully opened (max breakpoint) ion-content is scrollable and scrolling at the top now drag the modal instead of doing nothing.
- Ion-content only scroll when you drag the content and not the ion-toolbar at the top of the modal
Does this introduce a breaking change?
- [ ] Yes
- [x] No
Other information
Apart from scrolling and dragging modal everything stay unchanged.
Run & review this pull request in StackBlitz Codeflow.