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

Commit fe090658 authored by Selim Cinek's avatar Selim Cinek
Browse files

Fixed a bug where expanding by touch wasn't possible

In landscape expanding by touch was not working because
the rawX is different from the X.

Change-Id: Id1278b073ea2e10258648884c528f5db273f2d78
Fixes: 27923197
parent e4367d60
Loading
Loading
Loading
Loading
+4 −4
Original line number Diff line number Diff line
@@ -317,8 +317,8 @@ public class ExpandHelper implements Gefingerpoken {
                    mResizedView = null;
                    mWatchingForPull = false;
                }
                mInitialTouchY = ev.getY();
                mInitialTouchX = ev.getX();
                mInitialTouchY = ev.getRawY();
                mInitialTouchX = ev.getRawX();
                break;

            case MotionEvent.ACTION_CANCEL:
@@ -412,8 +412,8 @@ public class ExpandHelper implements Gefingerpoken {
                mWatchingForPull = mScrollAdapter != null &&
                        isInside(mScrollAdapter.getHostView(), x, y);
                mResizedView = findView(x, y);
                mInitialTouchX = ev.getX();
                mInitialTouchY = ev.getY();
                mInitialTouchX = ev.getRawX();
                mInitialTouchY = ev.getRawY();
                break;
            case MotionEvent.ACTION_MOVE: {
                if (mWatchingForPull) {