title: Detecting swipe gestures in WebView disallows clicks in it
body: <p>I have a <code>WebView</code> and I am implementing a <code>TouchListener</code> to it which can detect horizontal swipe.</p>
  
  <pre><code>webView.setOnTouchListener { v, event -&gt;
      when ( event.action ) {
          MotionEvent.ACTION_DOWN -&gt; x1 = event.x
          MotionEvent.ACTION_UP -&gt; {
              x2 = event.x
              val distance = Math.abs( x2 - x1 )
              if ( distance &gt;= thresholdDistance ) {
                  if ( webView.canGoBack() ) {
                      webView.goBack()
                  }
              }
          }
      }
      true
  }
  </code></pre>
  
  <p>This can detect swipes on the <code>WebView</code>, but the problem is, when the user clicks on a link in the <code>WebView</code>, the <code>WebView</code> does not respond. Also, the scrolling of the <code>WebView</code> doesn't work.</p>
  
  <blockquote>
    <p>What is the best way to handle clicks as well as to detect swipes on a <code>WebView</code>?</p>
  </blockquote>