@@ -44,8 +44,9 @@ import mozilla.components.support.base.feature.ViewBoundFeatureWrapper
4444import mozilla.components.support.base.log.logger.Logger
4545import mozilla.components.support.ktx.android.view.enterImmersiveMode
4646import mozilla.components.support.ktx.android.view.exitImmersiveMode
47+ import mozilla.components.ui.widgets.behavior.DependencyGravity
4748import mozilla.components.ui.widgets.behavior.EngineViewClippingBehavior
48- import mozilla.components.ui.widgets.behavior.EngineViewScrollingBehavior
49+ import mozilla.components.ui.widgets.behavior.EngineViewScrollingGesturesBehavior
4950import org.mozilla.reference.browser.BuildConfig
5051import org.mozilla.reference.browser.R
5152import org.mozilla.reference.browser.addons.WebExtensionPromptFeature
@@ -54,7 +55,6 @@ import org.mozilla.reference.browser.ext.getPreferenceKey
5455import org.mozilla.reference.browser.ext.requireComponents
5556import org.mozilla.reference.browser.pip.PictureInPictureIntegration
5657import org.mozilla.reference.browser.tabs.LastTabFeature
57- import mozilla.components.ui.widgets.behavior.ViewPosition as MozacToolbarBehaviorToolbarPosition
5858
5959private const val BOTTOM_TOOLBAR_HEIGHT = 0
6060
@@ -188,10 +188,10 @@ abstract class BaseBrowserFragment :
188188 )
189189
190190 (toolbar.layoutParams as ? CoordinatorLayout .LayoutParams )?.apply {
191- behavior = EngineViewScrollingBehavior (
192- view.context ,
193- null ,
194- MozacToolbarBehaviorToolbarPosition . BOTTOM ,
191+ behavior = EngineViewScrollingGesturesBehavior (
192+ engineView = engineView ,
193+ dependency = toolbar ,
194+ dependencyGravity = DependencyGravity . Bottom ,
195195 )
196196 }
197197
0 commit comments