Bug 1414698 - Part 1: Stop gamepad vibration when changing to the background; r=baku

MozReview-Commit-ID: 4Xxif7K500B

--HG--
extra : rebase_source : 7d9d4e3264cb96ea76182356da2704d2843c7215
This commit is contained in:
Daosheng Mu 2017-11-06 17:31:47 +08:00
parent ae622d03ea
commit 3ed0123bbc

View File

@ -10641,7 +10641,7 @@ void nsGlobalWindow::SetIsBackground(bool aIsBackground)
if (aIsBackground) {
// Notify gamepadManager we are at the background window,
// we need to stop vibrate.
if (inner) {
if (inner && changed) {
inner->StopGamepadHaptics();
}
return;