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

Commit 5d27d907 authored by Kshitij's avatar Kshitij
Browse files

fix: Properly handle rows and columns on commit with Transpose mapper

parent 0411c9a9
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -77,8 +77,8 @@ public class CellPosMapper {
            if (container != CONTAINER_DESKTOP) {
                super.mapPresenterToModel(presenterX, presenterY, presenterScreen, container);
            }
            final int numRows = mIDP.numRowsFixed;
            final int numColumns = mIDP.numColumnsFixed;
            final int numRows = mIDP.numColumnsFixed;
            final int numColumns = mIDP.numRowsFixed;
            final int index = (presenterY * numColumns) + presenterX;
            return new CellPos(index % numRows, index / numRows, presenterScreen);
        }