For #10180: Add extension to remove touch delegate from parent.

fennec/production
mcarare 4 years ago committed by Emily Kager
parent 59484208d6
commit 3e13927c25

@ -22,3 +22,10 @@ fun View.increaseTapArea(extraDps: Int) {
parent.touchDelegate = TouchDelegate(touchRect, this)
}
}
fun View.removeTouchDelegate() {
val parent = this.parent as View
parent.post {
parent.touchDelegate = null
}
}

Loading…
Cancel
Save