Skip to content

feat: swipe to close modal from content #22046

Closed
@nielsdewulf

Description

@nielsdewulf

Feature Request

Ionic version:

[x] 5.3.2

Describe the Feature Request

Expose swipe back gesture for customization at https://github.com/ionic-team/ionic-framework/blob/master/core/src/components/modal/modal.tsx#L29 . I wish to change the canStart function to disable the gesture when scrolling still needs to happen in the ion-content. If its scrolled to the top, the gesture can happen.

Describe Preferred Solution

Allow to give a custom createSwipeToCloseGesture to the Modal.

Describe Alternatives

Allow to change the individual gesture functions in the already made swipeToCloseGesture

Related Code

Additional Context

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions