-
Notifications
You must be signed in to change notification settings - Fork 13.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
fix(modal): sheet is easier to dismiss with swipe #25883
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
After checking out FW-389
and running modal/test/sheet
on a native design with the test modified for:
<ion-button id="custom-breakpoint-modal" onclick="presentModal({ initialBreakpoint: 1, breakpoints: [0, 1] })">
Present Sheet Modal (Custom Breakpoints)</ion-button>
I am observing that no snapping behavior is working. The sheet modal is free dragging to any value.
Can you pull latest + restart your dev server? The snapping is working on my end. RPReplay_Final1662479950.mp4 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The changes look good on device. The threshold does feel sensitive when using breakpoint values of [0, 0.5, 1]
and dragging down from 1
. You have to be deliberate in your sensitivity to snap to the 0.5
breakpoint.
Good catch. I reduced the sensitivity such that it feels better for both case. Mind giving it another try? |
Thoughts on bumping from
|
Agreed, 350 feels much better. Fixed in 71c6784 |
Dev build: 6.2.6-dev.11662502742.1ac13490
Pull request checklist
Please check if your PR fulfills the following requirements:
ionic-docs
repo, in a separate PR. See the contributing guide for details.npm run build
) was run locally and any changes were pushednpm run lint
) has passed locally and any fixes were made for failuresPull request type
Please check the type of change your PR introduces:
What is the current behavior?
Issue URL: resolves #24296
Given a sheet modal with breakpoints of
[0, 1]
, it is very difficult to dismiss the sheet. Developers need to swipe more than 50% of the way down the screen in order for it to dismiss.What is the new behavior?
Does this introduce a breaking change?
Other information