Bug 1651511 - Add Desktop zooming to experiments. r=botond,fluent-reviewers,preferences-reviewers,tnikkel,flod,Gijs

Differential Revision: https://phabricator.services.mozilla.com/D83574
This commit is contained in:
Kris Taeleman 2020-07-24 20:16:40 +00:00
parent ee604b3f2c
commit c2c63d7b06
3 changed files with 16 additions and 1 deletions

View File

@ -167,3 +167,12 @@ type = "boolean"
bug-numbers = [1651607]
is-public = true
default-value = false
[graphics-desktop-zooming]
title = "experimental-features-graphics-desktop-zooming"
description = "experimental-features-graphics-desktop-zooming-description"
restart-required = true
preference = "apz.allow_zooming"
type = "boolean"
bug-numbers = [1245183]
is-public = true

View File

@ -100,3 +100,8 @@ experimental-features-devtools-serviceworker-debugger-support =
.label = Developer Tools: Service Worker debugging
# "Service Worker" is an API name and is usually not translated.
experimental-features-devtools-serviceworker-debugger-support-description = Enables experimental support for Service Workers in the Debugger panel. This feature may slow the Developer Tools down and increase memory consumption.
# Desktop zooming experiment
experimental-features-graphics-desktop-zooming =
.label = Graphics: Smooth Pinch Zoom
experimental-features-graphics-desktop-zooming-description = Enable support for smooth pinch zooming on touchscreens and precision touch pads.

View File

@ -765,7 +765,8 @@ void nsWindow::RecreateDirectManipulationIfNeeded() {
return;
}
if (!StaticPrefs::apz_windows_use_direct_manipulation() ||
if (!(StaticPrefs::apz_allow_zooming() ||
StaticPrefs::apz_windows_use_direct_manipulation()) ||
StaticPrefs::apz_windows_force_disable_direct_manipulation()) {
return;
}