private boolean isContentTouch(int x, int y) {
        boolean contentTouch = false;

        switch (getPosition()) {
            case LEFT:
                contentTouch = ViewHelper.getLeft(mContentContainer) < x;
                break;

            case RIGHT:
                contentTouch = ViewHelper.getRight(mContentContainer) > x;
                break;

            case TOP:
                contentTouch = ViewHelper.getTop(mContentContainer) < y;
                break;

            case BOTTOM:
                contentTouch = ViewHelper.getBottom(mContentContainer) > y;
                break;
        }

        return contentTouch;
    }
Offsets the menu relative to its original position based on the position of the content.

@param offsetPixels The number of pixels the content if offset.
menudrawer/src/net/simonvt/menudrawer/SlidingDrawer.java