mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 733041 - Switch to using the velocity-bias strategy by default. r=Cwiiis
This commit is contained in:
parent
49cf07ae0d
commit
eb9ca81204
@ -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
|
||||
|
@ -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));
|
||||
|
Loading…
Reference in New Issue
Block a user