public boolean onTouch(final View view, final MotionEvent motionEvent) {
    touch(motionEvent);
    checkPinch(view, motionEvent);
    checkTouchMove(view, motionEvent);

    if (mode == ZOOM) return true;

    switch (motionEvent.getAction() & MotionEvent.ACTION_MASK) {
      case MotionEvent.ACTION_UP:
        {
          listener.lastScrollX = 0.0f;
          listener.lastScrollY = 0.0f;
          listener.firstY = true;
        }
    }

    if (own_procces) return gestureDetector.onTouchEvent(motionEvent);

    gestureDetector.onTouchEvent(motionEvent);
    return false;
  }