mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-10 11:55:49 +00:00
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:
parent
ae622d03ea
commit
3ed0123bbc
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user