Skip to content

Commit 09f7e2f

Browse files
authored
fix(BottomSheet): Back-to-blade motion is fluid
1 parent 0aa90d4 commit 09f7e2f

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/bottomsheet/bottomsheet.android.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -198,6 +198,8 @@ export class ViewWithBottomSheet extends ViewWithBottomSheetBase {
198198
}
199199

200200
if (bottomSheetOptions.options.canTouchBehind) {
201+
// necessary for smooth movement of the back page
202+
fragment.getDialog().getWindow().setFlags(android.view.WindowManager.LayoutParams.FLAG_NOT_FOCUSABLE, android.view.WindowManager.LayoutParams.FLAG_NOT_FOCUSABLE);
201203
const coordinator = view.getParent();
202204
if (coordinator instanceof android.view.View) {
203205
coordinator.findViewById(getId('touch_outside')).setOnTouchListener(

0 commit comments

Comments
 (0)