Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit b5489f4b authored by Jordan Demeulenaere's avatar Jordan Demeulenaere Committed by Android (Google) Code Review
Browse files

Merge "Immediately stop bouncing transitions if the overscroll is empty" into main

parents 951b1578 ac9e9a3c
Loading
Loading
Loading
Loading
+11 −0
Original line number Diff line number Diff line
@@ -682,6 +682,17 @@ private class SwipeTransition(
                                        }
                                    if (isBouncing) {
                                        bouncingScene = targetScene

                                        // Immediately stop this transition if we are bouncing on a
                                        // scene that does not bounce.
                                        val overscrollSpec = currentOverscrollSpec
                                        if (
                                            overscrollSpec != null &&
                                                overscrollSpec.transformationSpec.transformations
                                                    .isEmpty()
                                        ) {
                                            snapToScene(targetScene)
                                        }
                                    }
                                }
                            }