title: How to make ViewPager2 less sensitive?
body: <p>I'm using ViewPager2 in my App, it has three pages and each page show different contents, the issue is that it's too sensible that the ViewPager will change the pages even if someone is scrolling down and for mistake moves the finger a bit to right or left.</p>
  <p>So how could i make the ViewPager less sensitive?
  The ViewPager2 is created in Activity</p>
  <p>Here is my code where i initialize the ViewPager:</p>
  <pre><code>private lateinit var viewPager: ViewPager2
  private lateinit var adapterView: ViewPagerAdapter
  
  private fun initViewPager() {
      adapterView.addFragment(ElencoFragment())
      adapterView.addFragment(TestataFragment())
      adapterView.addFragment(CorpoFragment())
      adapterView.notifyDataSetChanged()
  
      viewPager.adapter = adapterView
      ...
  }
  
  
  override fun onCreate(savedInstanceState: Bundle?) {
      super.onCreate(savedInstanceState)
      viewPager = findViewById(R.id.pager)
      adapterView = ViewPagerAdapter(supportFragmentManager, lifecycle)
      ...
  }
  </code></pre>
  <p>My Adapter:</p>
  <pre><code> class ViewPagerAdapter
          (manager: FragmentManager, lifecycle: Lifecycle) :
          FragmentStateAdapter(manager, lifecycle) {
  
          private var fragmentList: ArrayList&lt;Fragment&gt; = ArrayList()
  
          override fun getItemCount(): Int {
              return fragmentList.size
          }
  
          override fun createFragment(position: Int): Fragment {
              return fragmentList[position]
          }
  
          fun addFragment(fragment: Fragment) {
              fragmentList.add(fragment)
          }
      }
  </code></pre>