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

Commit fff9be24 authored by Mohammed Althaf T's avatar Mohammed Althaf T 😊
Browse files

feat: Change page move offset

parent 52324256
Loading
Loading
Loading
Loading
+1 −1
Original line number Original line Diff line number Diff line
@@ -2798,7 +2798,7 @@ public class Workspace<T extends View & PageIndicator> extends PagedView<T>
        IntSet pageIndexesToVerify = IntSet.wrap(nextPage - 1,
        IntSet pageIndexesToVerify = IntSet.wrap(nextPage - 1,
                nextPage + (isTwoPanelEnabled() ? 2 : 1));
                nextPage + (isTwoPanelEnabled() ? 2 : 1));


        int iconOffset = mLauncher.getDeviceProfile().iconSizePx / 3;
        int iconOffset = (int) Math.round(mLauncher.getDeviceProfile().iconSizePx / 1.5);
        for (int pageIndex : pageIndexesToVerify) {
        for (int pageIndex : pageIndexesToVerify) {
            // When deciding whether to perform a page switch, we need to consider the most
            // When deciding whether to perform a page switch, we need to consider the most
            // extreme X coordinate between the finger location and the center of the object
            // extreme X coordinate between the finger location and the center of the object