You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit dd6e04f
Browse filesBrowse the repository at this point in the historyBrowse files
fix(core): a BottomSheet's dim follows the sheet the way an iOS sheet's does
Below the shortest detent the scrim is linear in the sheet's position and
clears at the dismissed position (the sheet's top at the bottom of the
screen), as UIKit's dim does; it used to clear halfway there. While a gesture
moves it the host's backdrop easing is pinned off, so the dim follows the
finger at once, and a release plays it on the dialog's ::backdrop through the
motion foundation's animator, on the same clock as the sheet, each moment's
value read from where the sheet is on its curve. A finger catches it where it
is. A peek detent keeps its lighter scrim.
[fix] A BottomSheet's scrim follows the sheet the way an iOS sheet's dim does. Dragged below its shortest detent, the dim thins in a straight line with the sheet's position and clears only when the sheet reaches the bottom of the screen; it used to clear halfway there. It follows the finger at once instead of easing 300 ms behind. When the sheet settles or is flung away, the dim rides the same spring frame for frame, on the compositor. A peek detent's lighter scrim is unchanged.
0 commit comments