private float getActiveY(MotionEvent ev) {
        try {
            return ev.getY(mActivePointerIndex);
        } catch (Exception e) {
            return ev.getY();
        }
    }
Does a whole lot of gesture detecting.
main/src/main/java/com/quxianggif/common/view/photoview/CustomGestureDetector.java