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

Commit 5b637aed authored by Andrii Kulian's avatar Andrii Kulian Committed by android-build-merger
Browse files

Don\'t delay child pressed state in freeform mode

am: a6aea987

Change-Id: I68c9d42ca9b3bda6a2ea823db27f8a11046b0e50
parents 68a518c4 a6aea987
Loading
Loading
Loading
Loading
+5 −0
Original line number Diff line number Diff line
@@ -244,6 +244,11 @@ public class DecorCaptionView extends ViewGroup implements View.OnTouchListener,
        return mTouchDispatchList;
    }

    @Override
    public boolean shouldDelayChildPressedState() {
        return false;
    }

    private boolean passedSlop(int x, int y) {
        return Math.abs(x - mTouchDownX) > mDragSlop || Math.abs(y - mTouchDownY) > mDragSlop;
    }