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

Commit 4a9e1e21 authored by Sunny Goyal's avatar Sunny Goyal
Browse files

Fixing long-press in syste-drag does not initialize the event pos

Bug: 147899070
Change-Id: I73bc7d5addde5fb3304cac29f0ecce17b2cc48ea
parent 0580b4a5
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -160,8 +160,8 @@ public class DragController implements DragDriver.EventListener, TouchController

        mOptions = options;
        if (mOptions.systemDndStartPoint != null) {
            mMotionDownX = mOptions.systemDndStartPoint.x;
            mMotionDownY = mOptions.systemDndStartPoint.y;
            mLastTouch[0] = mMotionDownX = mOptions.systemDndStartPoint.x;
            mLastTouch[1] = mMotionDownY = mOptions.systemDndStartPoint.y;
        }

        final int registrationX = mMotionDownX - dragLayerX;