Bug 1253041 - Don't apply user wheel prefs more than once. r=smaug

This causes the preferences to be applied twice for events that are sent to the child process
This commit is contained in:
Andrew McCreight 2016-03-11 06:41:44 -08:00
Родитель a3239fa787
Коммит bdab462e56
1 изменённых файлов: 4 добавлений и 0 удалений

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

@ -5624,6 +5624,10 @@ EventStateManager::WheelPrefs::Init(EventStateManager::WheelPrefs::Index aIndex)
void
EventStateManager::WheelPrefs::ApplyUserPrefsToDelta(WidgetWheelEvent* aEvent)
{
if (aEvent->customizedByUserPrefs) {
return;
}
Index index = GetIndexFor(aEvent);
Init(index);