diff --git a/index.html b/index.html
index fc876e4..a586dac 100644
--- a/index.html
+++ b/index.html
@@ -801,8 +801,15 @@
Let |navigator:Navigator| be |gamepad|'s [=relevant global
object=]'s {{Navigator}} object.
+ Let |document:Document?| be |gamepad|'s [=relevant global
+ object=]'s [=associated `Document`=]; otherwise `null`.
+
+ If |document| is `null`, abort these steps.
+
If |navigator|.{{Navigator/[[hasGamepadGesture]]}} is `false` and
- |gamepad| [=contains a gamepad user gesture=]:
+ |document| is a [=Document/fully active descendant of a top-level
+ traversable with user attention=] and |gamepad| [=contains a gamepad
+ user gesture=]:
- Set |navigator|.{{Navigator/[[hasGamepadGesture]]}} to
`true`.
@@ -818,10 +825,6 @@
- Set |connectedGamepad|.{{Gamepad/[[timestamp]]}} to
|now|.
- - Let |document:Document?| be |gamepad|'s [=relevant
- global object=]'s [=associated `Document`=]; otherwise
- `null`.
-
- If |document| is not `null` and is [=Document/fully
active=], then [=queue a global task=] on the [=gamepad
task source=] to [=fire an event=] named