Skip to content
This repository was archived by the owner on Mar 19, 2021. It is now read-only.

Commit d3d4c6e

Browse files
upsupermoz-wptsync-bot
authored andcommitted
Round coordinate passed to pointerMove.
Differential Revision: https://phabricator.services.mozilla.com/D40541 bugzilla-url: https://bugzilla.mozilla.org/show_bug.cgi?id=1541573 gecko-commit: ba13ac52e22a0c8fce78312520418dd2bae349ac gecko-integration-branch: autoland gecko-reviewers: smaug
1 parent 0d97ff8 commit d3d4c6e

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

pointerlock/movementX_Y_basic.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -128,8 +128,8 @@ <h2>Manual Test Steps:</h2>
128128
}
129129

130130
function run_test() {
131-
x = window.innerWidth / 2;
132-
y = window.innerHeight / 2;
131+
x = Math.round(window.innerWidth / 2);
132+
y = Math.round(window.innerHeight / 2);
133133
var actions = new test_driver.Actions();
134134
actions.pointerMove(x, y)
135135
.pointerDown()

0 commit comments

Comments
 (0)