title: How can I get onTouchEvent in Jetpack Compose?
body: <p>In normal view, we can have <code>onTouchEvent</code></p>
  <pre><code>    override fun onTouchEvent(event: MotionEvent?): Boolean {
          when (event?.action) {
              MotionEvent.ACTION_DOWN -&gt; {}
              MotionEvent.ACTION_MOVE -&gt; {}
              MotionEvent.ACTION_UP -&gt; {}
              else -&gt; return false
          }
          invalidate()
          return true
      }
  </code></pre>
  <p>In Jetpack Compose, I can only find we have the <code>tapGestureFilter</code> in the modifier, which only takes the action from the <code>ACTION_UP</code> only.</p>
  <pre><code>Modifier
      .tapGestureFilter { Log.d(&quot;Track&quot;, &quot;Tap ${it.x} | ${it.y}&quot;) }
      .doubleTapGestureFilter { Log.d(&quot;Track&quot;, &quot;DoubleTap ${it.x} | ${it.y}&quot;) }
  </code></pre>
  <p>Is there an equivalent <code>onTouchEvent</code> for Jetpack Compose?</p>