| Index: content/common/gamepad_user_gesture.cc
|
| diff --git a/content/common/gamepad_user_gesture.cc b/content/common/gamepad_user_gesture.cc
|
| index 7b530b1ecf4049cb9c3bdc7aa4200bab3ab1244d..649b5ca90fc4b2c7bc3b061e1749286655448a62 100644
|
| --- a/content/common/gamepad_user_gesture.cc
|
| +++ b/content/common/gamepad_user_gesture.cc
|
| @@ -22,7 +22,7 @@ bool GamepadsHaveUserGesture(const blink::WebGamepads& gamepads) {
|
| kPrimaryInteractionButtons);
|
| for (unsigned button_index = 0; button_index < buttons_to_check;
|
| button_index++) {
|
| - if (pad.buttons[button_index] > 0.5f)
|
| + if (pad.buttons[button_index].pressed)
|
| return true;
|
| }
|
| }
|
|
|