Skip to content
This repository was archived by the owner on Nov 3, 2025. It is now read-only.

Add configurable background interaction mode to allow forwarding touches to presenting view#220

Closed
rahulVermaSimpplr wants to merge 4 commits intoslackhq:masterfrom
rahulVermaSimpplr:pr115
Closed

Add configurable background interaction mode to allow forwarding touches to presenting view#220
rahulVermaSimpplr wants to merge 4 commits intoslackhq:masterfrom
rahulVermaSimpplr:pr115

Conversation

@rahulVermaSimpplr
Copy link
Copy Markdown

This PR integrates changes from slackhq/PanModal#115 into this fork, introducing a backgroundInteraction property on PanModalPresentable and the PanModalBackgroundInteraction enum.
With these changes, developers can control how touches on the dimmed background are handled:

.dismiss — dismiss the modal (existing behavior)
.forward — forward the touch events (including taps, scrolls, and drags) to the presenting view’s hierarchy
.none — swallow the touch without action
This enables scenarios where the bottom sheet remains interactive and the presenting view can also receive gestures on the uncovered background area (e.g., scrolling lists, interacting with buttons).
No breaking changes — existing behavior remains the default unless backgroundInteraction is overridden.

@salesforce-cla
Copy link
Copy Markdown

Thanks for the contribution! Unfortunately we can't verify the commit author(s): Ilya Kharlamov <k***@r***.ru>. One possible solution is to add that email to your GitHub account. Alternatively you can change your commits to another email and force push the change. After getting your commits associated with your GitHub account, sign the Salesforce Inc. Contributor License Agreement and this Pull Request will be revalidated.

@salesforce-cla
Copy link
Copy Markdown

Thanks for the contribution! Before we can merge this, we need @ilia3546 to sign the Salesforce Inc. Contributor License Agreement.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants