diff --git a/gfx/layers/Layers.cpp b/gfx/layers/Layers.cpp index 515ae8e991f..96e17d0e899 100644 --- a/gfx/layers/Layers.cpp +++ b/gfx/layers/Layers.cpp @@ -200,6 +200,12 @@ namespace layers { Layer* LayerManager::GetPrimaryScrollableLayer() { + // AsyncPanZoomController handles multiple scrollable layers, so there is no + // "primary" scrollable layer. +#ifndef MOZ_WIDGET_ANDROID + return nullptr; +#endif + if (!mRoot) { return nullptr; }