diff --git a/app/src/main/java/org/mozilla/fenix/ext/View.kt b/app/src/main/java/org/mozilla/fenix/ext/View.kt index 358804048..a58669a5b 100644 --- a/app/src/main/java/org/mozilla/fenix/ext/View.kt +++ b/app/src/main/java/org/mozilla/fenix/ext/View.kt @@ -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 + } +}