Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix web_test pointerevent_coordinates_when_locked on wpt #16265

Merged
merged 1 commit into from Apr 15, 2019
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
Expand Up @@ -73,15 +73,15 @@
});

var actions = new test_driver.Actions();
actions.pointerMove(/* x = */ 0, /* y = */ 0, {origin: target}).pointerDown();
actions.pointerMove(/* x = */ 0, /* y = */ 0, {origin: div1}).pointerDown();

pos_x = target.getBoundingClientRect().x + target.offsetWidth / 2;
pos_y = target.getBoundingClientRect().y + target.offsetHeight / 2;
pos_x = div1.offsetWidth / 2;
pos_y = div1.offsetHeight / 2;
for (var i = 0; i < 10; i++) {
// Alternatively move left/right and up/down.
pos_x += ((-1)**i) * i * 10;
pos_y -= ((-1)**i) * i * 10;
actions.pointerMove(pos_x, pos_y);
actions.pointerMove(pos_x, pos_y, {origin: div1});
}
actions.pointerUp().send();
}
Expand Down