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:
parent
4a59ed0eed
commit
bad90f3408
@ -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
|
||||||
|
}
|
||||||
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user