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

Commit dc55d3b1 authored by Bobby Georgescu's avatar Bobby Georgescu
Browse files

Fix lack of snapback on very short scroll

Bug: 7318609

snapToNeighborImage returns false if it didn't
actually need to move to a neighboring image, so
use this information to correctly snapback if
needed.

Change-Id: I28bbcb5ea224957fefa3838891c4343a1d9b8aff
parent ee7c1e01
Loading
Loading
Loading
Loading
+2 −3
Original line number Diff line number Diff line
@@ -1258,9 +1258,8 @@ public class PhotoView extends GLView {
                return;
            }

            if (mFilmMode && !mHadFling && mFirstScrollX) {
                snapToNeighborImage();
            } else {
            if (!(mFilmMode && !mHadFling && mFirstScrollX
                    && snapToNeighborImage())) {
                snapback();
            }
        }