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

Commit 5d0649a3 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

am: 5b637aed

Change-Id: If94ef4d5fbf5142044797722bc0ffa86d0aa0dc4
parents be302882 5b637aed
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;
    }