canNestedScrollVertically

open fun canNestedScrollVertically(direction: Int): Boolean

Override this method if the content view contains vertically scrollable views that could conflict with the drag-to-dismiss gesture. For example, if the content view contains a vertically scrollable RecyclerView:

override fun canNestedScrollVertically(direction: Int): Boolean {
return recyclerView.canScrollVertically(direction)
}

This would allow RecyclerView's scrolling to take precedence over the drag-to-dismiss gesture.