title: View pager 2: Depth Page Transformation make fragment click events disable on pager swipe up
body: <p>I am using viewpager2 with fragmentStateAdapter.
  Also, setting page transformer as DepthPageTransformation(transition is working correctly the way I want)</p>
  
  <p>But when I swipe up the pages, the on click events on that fragment works on double click(event works after clicking twice on it)</p>
  
  <p>If I remove pageTransformation from the viewPager, then it works fine.
  So, not able to understand that why is transformation causing click event problem.</p>
  
  <pre><code>    private static final float MIN_SCALE = 0.75f;
      public void transformPage(@NonNull View view, float position) {
          int pageHeight = view.getHeight();
          if (position &lt; -1) { // [-Infinity,-1)
              // This page is way off-screen to the left.
              view.setAlpha(0f);
              Log.d("batman",position+" &lt;-1");
          } else if (position &lt;= 0) { // [-1,0]
              // Use the default slide transition when moving to the left page
              view.setAlpha(1f);
              view.setTranslationY(0f);
              view.setScaleX(1f);
              view.setScaleY(1f);
              Log.d("batman",position+" &lt;=0");
          } else if (position &lt;= 1) { // (0,1]
              // Fade the page out.
              view.setAlpha(1 - position);
              // Counteract the default slide transition
              view.setTranslationY(pageHeight * -position);
              // Scale the page down (between MIN_SCALE and 1)
              float scaleFactor = MIN_SCALE
                      + (1 - MIN_SCALE) * (1 - Math.abs(position));
              view.setScaleX(scaleFactor);
              view.setScaleY(scaleFactor);
              Log.d("batman",position+" &lt;=1");
          } else { // (1,+Infinity]
              // This page is way off-screen to the right.
              view.setAlpha(0f);
              Log.d("batman",position+" else");
          }
      }
  }
  </code></pre>
  
  <pre><code>HomeFragment(adapter setting):
  
  mAdapter = new ViewPagerAdapter(this);
          setPageChangeListener();
          mViewPager.setAdapter(mAdapter);
        //  mViewPager.setOffscreenPageLimit(3);
          mViewPager.setPageTransformer( new DepthPageTransformer());
  </code></pre>
  
  <p>I want that button click event should work at one click when the page is swiped up.</p>