2
0
mirror of https://github.com/fork-maintainers/iceraven-browser synced 2024-11-03 23:15:31 +00:00

[fenix] For https://github.com/mozilla-mobile/fenix/issues/10180: Add extension to remove touch delegate from parent.

This commit is contained in:
mcarare 2020-04-24 16:03:53 +03:00 committed by Emily Kager
parent 4a59ed0eed
commit bad90f3408

View File

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