diff --git a/mobile/android/app/mobile.js b/mobile/android/app/mobile.js index 1c01ed09badb..f1716d797af2 100644 --- a/mobile/android/app/mobile.js +++ b/mobile/android/app/mobile.js @@ -363,7 +363,7 @@ pref("places.frecency.unvisitedTypedBonus", 200); pref("gfx.color_management.mode", 0); #ifdef ANDROID // 0=fixed margin, 1=velocity bias, 2=dynamic resolution, 3=no margins -pref("gfx.displayport.strategy", 0); +pref("gfx.displayport.strategy", 1); #endif // don't allow JS to move and resize existing windows diff --git a/mobile/android/base/gfx/DisplayPortCalculator.java b/mobile/android/base/gfx/DisplayPortCalculator.java index 23f1f8a2a488..f6b081db28c2 100644 --- a/mobile/android/base/gfx/DisplayPortCalculator.java +++ b/mobile/android/base/gfx/DisplayPortCalculator.java @@ -15,7 +15,7 @@ final class DisplayPortCalculator { private static final String LOGTAG = "GeckoDisplayPortCalculator"; private static final PointF ZERO_VELOCITY = new PointF(0, 0); - private static DisplayPortStrategy sStrategy = new FixedMarginStrategy(); + private static DisplayPortStrategy sStrategy = new VelocityBiasStrategy(); static DisplayPortMetrics calculate(ImmutableViewportMetrics metrics, PointF velocity) { return sStrategy.calculate(metrics, (velocity == null ? ZERO_VELOCITY : velocity));