ionic-framework icon indicating copy to clipboard operation
ionic-framework copied to clipboard

fix(modalSheet): change gesture to allow draging when content scrolle…

Open Captainfl4me opened this issue 1 year ago • 1 comments

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.

Captainfl4me avatar Jun 24 '23 16:06 Captainfl4me

Review PR in StackBlitz Codeflow Run & review this pull request in StackBlitz Codeflow.

stackblitz[bot] avatar Jun 24 '23 16:06 stackblitz[bot]