code: private boolean isScrollUpEvent(final float x, final float y,
                                      @NonNull final ViewGroup viewGroup) {
          int location[] = new int[2];
          viewGroup.getLocationOnScreen(location);
  
          if (x >= location[0] && x <= location[0] + viewGroup.getWidth() && y >= location[1] &&
                  y <= location[1] + viewGroup.getHeight()) {
              for (int i = 0; i < viewGroup.getChildCount(); i++) {
                  View view = viewGroup.getChildAt(i);
  
                  if (view.canScrollVertically(-1)) {
                      return true;
                  } else if (view instanceof ViewGroup) {
                      return isScrollUpEvent(x, y, (ViewGroup) view);
                  }
              }
          }
  
          return false;
      }
docs: Returns, whether a touch event at a specific position targets a view, which can be scrolled
  up.
  
  @param x
  The horizontal position of the touch event in pixels as a {@link Float} value
  @param y
  The vertical position of the touch event in pixels as a {@link Float} value
  @param viewGroup
  The view group, which should be used to search for scrollable child views, as an
  instance of the class {@link ViewGroup}. The view group may not be null
  @return True, if the touch event targets a view, which can be scrolled up, false otherwise