зеркало из https://github.com/mozilla/gecko-dev.git
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:
Родитель
84fe9a5693
Коммит
83a3099eea
|
@ -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;
|
||||
|
|
Загрузка…
Ссылка в новой задаче