Bug 1671849 - Move drag threshold setting to nsLookAndFeel; r=geckoview-reviewers,snorp

Differential Revision: https://phabricator.services.mozilla.com/D93902
This commit is contained in:
Edgar Chen 2020-10-19 15:16:49 +00:00
Родитель 84fe9a5693
Коммит 83a3099eea
2 изменённых файлов: 6 добавлений и 5 удалений

Просмотреть файл

@ -375,11 +375,6 @@ pref("app.update.url.android", "https://aus5.mozilla.org/update/4/%PRODUCT%/%VER
pref("app.update.channel", "@MOZ_UPDATE_CHANNEL@");
#endif
// threshold where a tap becomes a drag, in 1/240" reference pixels
// The names of the preferences are to be in sync with EventStateManager.cpp
pref("ui.dragThresholdX", 25);
pref("ui.dragThresholdY", 25);
pref("layers.async-video.enabled", true);
// APZ physics settings (fling acceleration, fling curving and axis lock) have

Просмотреть файл

@ -409,6 +409,12 @@ nsresult nsLookAndFeel::GetIntImpl(IntID aID, int32_t& aResult) {
break;
}
case IntID::DragThresholdX:
case IntID::DragThresholdY:
// Threshold where a tap becomes a drag, in 1/240" reference pixels.
aResult = 25;
break;
default:
aResult = 0;
rv = NS_ERROR_FAILURE;